A letsencrypt certbot auth/cleanup hook program engineered to handle hostname ownership authentication via DigitalOcean's DNS system.
Project description
This program’s purpose is to function as a manual authentication and cleanup hook for the Let’s Encrypt EFF's certbot client program when you wish to use ACME-DNS authentication during the certificate authentication process, while also using DigitalOcean's DNS infrastructure for the creation and removal of the ACME-DNS required DNS TXT records. This program also supports being passed a command string that will be called during the cleanup hook stage of the authentication process.
Installation
Installation of this program is quite easy, as it only has one external dependency, and this program includes this dependency in its setup.py file. So, you should be able to install the whole enchilada with the following command:
pip install lets-do-dns
Usage
Make sure you pass the DO_APIKEY and DO_DOMAIN environment variables to certbot when it is called. Tell certbot to load this program by passing its name to certbot via the --manual-auth-hook and the --manual-cleanup-hook CLI arguments.
If you would also like for this program to call your own program during the cleanup hook stage, make sure you pass the LETS_DO_POSTCMD environment variable to certbot as well, specifying the invocation string of your program.
Here’s an example of how you can use this program:
DO_API_KEY=super-secret-key \
DO_DOMAIN=mydomain.com \
LETS_DO_POSTCMD='echo ${CERTBOT_DOMAIN} > command_output.txt' \
certbot certonly --manual -d myhostname.mydomain.com \
--preferred-challenges dns \
--manual-auth-hook lets-do-dns \
--manual-cleanup-hook lets-do-dns
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for lets_do_dns-0.9.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9fa803317f4dda4fe3d400a78b3fec3e59dc9a12425d25985c344d641e80d72 |
|
MD5 | 886c61f8e5ad185ff4c8a46c7dd1263b |
|
BLAKE2b-256 | c98a2e0416c4a3b7b427a7f34e140691bec139a932f75175b428be827ec2e2f7 |