Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Allows you to use DynECT with letsencrypt.sh and DNS challenge response

License

Notifications You must be signed in to change notification settings

mdevreugd/letsencrypt-dynect-hook

 
 

Repository files navigation

dynect hook for letsencrypt.sh ACME client

This a hook for the Let's Encrypt ACME client letsencrypt.sh, that enables using DNS records on DynECT to respond to dns-01 challenges. Requires Python 2 and your DynECT account credentials being set in your environment.

Setup

$ git clone https://github.com/lukas2511/letsencrypt.sh
$ cd letsencrypt.sh
$ mkdir hooks
$ git clone https://github.com/mdevreugd/letsencrypt-dynect-hook hooks/dynect
$ pip install -r hooks/dynect/requirements.txt
$ . hooks/dynect/dynect-creds.sh

Usage

$ ./letsencrypt.sh -c -d example.com -t dns-01 -k 'hooks/dynect/dynect-hook.py'
#
# !! WARNING !! No main config file found, using default config!
#
Processing example.com
 + Signing domains...
 + Creating new directory /home/user/letsencrypt.sh/certs/example.com ...
 + Generating private key...
 + Generating signing request...
 + Requesting challenge for example.com...
 + dynect hook executing: deploy_challenge
 + TXT record created: _acme-challenge.example.com
 + Settling down for 10s...
 + DNS not propagated, waiting 30s...
 + Responding to challenge for example.com...
 + dynect hook executing: clean_challenge
 + Deleting TXT record name: _acme-challenge.example.com
 + Challenge is valid!
 + Requesting certificate...
 + Checking certificate...
 + Done!
 + Creating fullchain.pem...
 + dynect hook executing: deploy_cert
 + ssl_certificate: /home/user/letsencrypt.sh/certs/example.com/fullchain.pem
 + ssl_certificate_key: /home/user/letsencrypt.sh/certs/example.com/privkey.pem
 + Done!

About

Allows you to use DynECT with letsencrypt.sh and DNS challenge response

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.0%
  • Shell 18.0%