A fully manual Let's Encrypt/ACME client
Isn’t the point of Let’s Encrypt to be automatic and seamless? Maybe, but here’s some reasons:
Python 3.3 or above is required.
There is a Docker image on the Docker Hub.
You can install the package from PyPI using the pip tool. To do so, run pip3 install manuale.
If you’re not using Windows or OS X pip may need to compile some of the dependencies. In this case, you need a compiler and development headers for Python, OpenSSL and libffi installed.
On Debian-based distributions, these will typically be gcc python3-dev libssl-dev libffi-dev, and on RPM-based distributions gcc python3-devel openssl-devel libffi-devel.
git clone https://github.com/veeti/manuale ~/.manuale cd ~/.manuale python3 -m venv env env/bin/python setup.py install ln -s env/bin/manuale ~/.bin/
(Assuming you have a ~/.bin/ directory in your $PATH).
Register an account (once):
$ manuale register firstname.lastname@example.org
Authorize one or more domains:
$ manuale authorize example.com DNS verification required. Make sure these records are in place: _acme-challenge.example.com. IN TXT "(some random gibberish)" Press enter to continue. ... 1 domain(s) authorized. Let's Encrypt!
Get your certificate:
$ manuale issue --output certs/ example.com ... Certificate issued. Expires: 2016-06-01 SHA256: (more random gibberish) Wrote key to certs/example.com.pem Wrote certificate to certs/example.com.crt Wrote certificate with intermediate to certs/example.com.chain.crt Wrote intermediate certificate to certs/example.com.intermediate.crt
Set yourself a reminder for renewal!
You need to create an account once. To do so, call manuale register [email]. This will create a new account key for you. Follow the registration instructions.
Once that’s done, you’ll have your account saved in account.json in the current directory. You’ll need this to do anything useful. Oh, and it contains your private key, so keep it safe and secure.
manuale expects the account file to be in your working directory by default, so you’ll probably want to make a specific directory to do all your certificate stuff in. Likewise, created certificates get saved in the current path by default.
Next up, verify the domains you want a certificate for with manuale authorize [domain]. This will show you the DNS records you need to create and wait for you to do it. For example, you might do it for example.com and www.example.com.
Once that’s done, you can finally get down to business. Run manuale issue example.com www.example.com to get your certificate. It’ll save the key, certificate and certificate with intermediate to the working directory.
There’s plenty of documentation inside each command. Run manuale -h for a list of commands and manuale [command] -h for details.
The MIT License (MIT)
Copyright © 2016-2017 Veeti Paananen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.