Skip to main content

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.

That said, there are 4 ways that you can install this program;

  • The first is via the normal means, that is, PyPI via PIP as so:

    pip install lets-do-dns
  • You can also install this program from a clone of the source repository, as so (remember, if you want to modify the source code without re-installing, pass the -e flag to PIP):

    pip install .
  • You can also use Docker to install/run this program. You can do this like so when grabbing from the Docker Hub:

    docker pull jitsusama/lets-do-dns
  • Finally, you can build the image from a clone of the source repository like so:

    docker build -t jitsusama/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 from the CLI when you installed the program via PIP:

DO_APIKEY=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

Here’s an example of how you can use this program from Docker when you pulled the image from the Docker Hub:

docker run -v "$(pwd)/my-cert-dir:/etc/letsencrypt" \
    -e "DO_APIKEY=super-secret-key" \
    -e "DO_DOMAIN=mydomain.com" \
    -e 'LETS_DO_POSTCMD="echo ${CERTBOT_DOMAIN} > /etc/letsencrypt/command_output.txt"' \
    jitsusama/lets-do-dns \
    certonly --manual -d myhostname.mydomain.com \
        --preferred-challenges dns \
        --manual-auth-hook lets-do-dns \
        --manual-cleanup-hook lets-do-dns

Release files for lets-do-dns 0.10.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lets-do-dns 0.10.3
File Size Uploaded
lets-do-dns-0.10.3.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lets-do-dns 0.10.3
File Interpreter ABI Platform
lets_do_dns-0.10.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 21.0 kB

Release files / lets-do-dns-0.10.3.tar.gz

Download URL lets-do-dns-0.10.3.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
532e9f9f81f85ce688047957b7c322929215b32fba3055b1e17ab6a3221acb12
BLAKE2b-256 checksum
How to use checksums
16d6186f5fa105372bf32d1fe132046f21e658640f6c6b0d69c649557a22150c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / lets_do_dns-0.10.3-py2.py3-none-any.whl

Download URL lets_do_dns-0.10.3-py2.py3-none-any.whl
Size 13.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3428cad4b8540a5d4281c6c583200b8228be75254583bfbe4f1f2fd3f3ae5821
BLAKE2b-256 checksum
How to use checksums
4e6c0252b672fb14a6c13ad19ce7c64d7520a62fbede21ff666f386c26ed7b99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.10.3 This release

2 release files

0.10.2

2 release files

0.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page