Skip to content

Certbot Docker container that request certificates for domains resolved by Cloudflare DNS

License

Notifications You must be signed in to change notification settings

Richardds/docker-certbot

Repository files navigation

Certbot

Certbot Docker container that request certificates for domains resolved by Cloudflare DNS.

Credentials

You can choose between the restricted API token or global API key to authenticate with Cloudflare. Credentials are stored in cloudflare.ini in the following format. The API token method is more restricted and therefore more recommended. More documentation can be found here.

API token (recommended):

dns_cloudflare_api_token=<TOKEN>

API key:

dns_cloudflare_email=<EMAIL>
dns_cloudflare_api_key=<KEY>

Examples

Request certificate

docker-compose run --rm certbot certonly --dns-cloudflare --dns-cloudflare-credentials /cloudflare.ini -d example.com

Renew all certificates

docker-compose run --rm certbot renew

Delete certificate

docker-compose run --rm certbot delete --cert-name example.com

About

Certbot Docker container that request certificates for domains resolved by Cloudflare DNS

Topics

Resources

License

Stars

Watchers

Forks