Skip to content

πŸ”’πŸ™‹ Auto-generate SSL certs using DNS verification via CloudFlare's API

Notifications You must be signed in to change notification settings

pastudan/cloudflare-dns-certbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Running is simple... just make sure you have the following variables defined in your variables.sh file

CLOUDFLARE_API_KEY=736e6f6f70646f6767
CLOUDFLARE_EMAIL=tupac@isntdead.com
FQDN_LIST=(biggiesmalls.co www.biggiesmalls.co the.notorious.big)

then

./lets_encrypt.sh

will create (among others) the following files

  • private key in ./lets-encrypt/live/${FIRST_HOSTNAME}/privkey.pem
  • certificate file in ./lets-encrypt/live/${FIRST_HOSTNAME}/fullchain.pem

There's also some commented out code to copy the certs and restart nginx, but I'll leave that to you to decide how to implememt

About

πŸ”’πŸ™‹ Auto-generate SSL certs using DNS verification via CloudFlare's API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages