NOTE: Right now this program is untested and incomplete, very much in the Exploration phase.
Source: https://github.com/mbland/certbot-webroot-setup
This program encapsulates the steps needed to set up Certbot to use the Webroot plugin to install and renew Let's Encrypt SSL certificates.
It is written using the go-script-bash framework.
To get a copy of the repo and view the online help:
$ git clone https://github.com/mbland/certbot-webroot-setup
$ cd certbot-webroot-setup
$ ./certbot-webroot-setup -h
It's recommended you alias the certbot-webroot-setup
script using
certbot-webroot-setup env
to create the cws
alias per the following:
$ eval "$(./certbot-webroot-setup env cws)"
To try to install certbot
, generate a private key and Certificate Signing
Request, and fetch a Let's Encrypt certificate all at once:
$ cws setup-all my-site.com me@mysite.com
If instead you want to take things step-by-step, you can run individual commands such as the following:
$ cws certbot-setup
$ cws ssl-generate private-key my-site.com.key
$ cws site-setup my-site.com my-site.com.key me@my-site.com
$ cws get-cert my-site.com
In either case, use cws webserver-config
to generate a configuration block for
your web server. Note that right now, only Nginx is
supported.
To run certbot-webroot-setup
, you must have
Bash version 3.2 or
greater installed on your system. Run bash --version
to make sure Bash is in
your PATH
and is a compatible version. You should see output like this:
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.
If you do not see this, follow the instructions in the Installing Bash section of the go-script-bash README.
This software is made available as Open Source software under the ISC License. For the text of the license, see the LICENSE file.