Skip to content
Certbot (Let's Encrypt Project) Hooks
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Certbot Hooks


This project was created to store hooks scripts that is going to be used on the certificate generation process of certbot (Let's Encrypt).

Below are a list of files, it purpose and usage instructions.


That hook was created due the given situation: You use Cloudflare as your DNS server and also your WAF.

So you need to use Cloudflare to authenticate the certbot using a DNS record (See the certbot-dns-cloudflare plugin for certbot that is responsible for that) and also have to deploy your private key and certificate to Cloudflare.

That hook was created to do that action. To deploy the private key and certificate to Cloudflare.


Clone the repository to a folder on the machine that you are going to use to generate the certificate. I'll assume that you cloned on the /opt directory, so the main folder will be /opt/certbot-hooks/.

The command bellow will create a pair of keys locally and sign that using certbot and the hook will deploy that on Cloudflare.

sudo certbot certonly \
  --dns-cloudflare \
  --deploy-hook /opt/certbot-hooks/ \
  --dns-cloudflare-credentials ~/.secrets/certbot/cloudflare.ini \
  --dns-cloudflare-propagation-seconds 5 \


If you want to contribute create an issue and if you know what you are doing create a PR.

You can’t perform that action at this time.