Certbot Webroot Setup
NOTE: Right now this program is untested and incomplete, very much in the Exploration phase.
It is written using the go-script-bash framework.
Table of contents
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 firstname.lastname@example.org
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 email@example.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
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
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.