Skip to content

Automated certificate creation/renewal under docker with HAProxy / letsencrypt

Notifications You must be signed in to change notification settings

nimasystems/haproxy-letsencrypt-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://omarghader.github.io/haproxy-letsencrypt-docker-certbot-certificates/

create empty dirs

mkdir -p ./letsencrypt mkdir -p ./certs

create dummy cert

./bin/create-dummy.cert.sh

start project and make sure all is ok

docker-compose up

Certbot

dry run first

./bin/create-cert.sh test1.domain "test1.domain,test2.domain" [email protected] --dry-run

exec next

./bin/create-cert.sh test1.domain "test1.domain,test2.domain" [email protected]

check the generated cert

cat ./certs/test1.domain.pem

delete the dummy cert

rm -rf ./certs/test.pem

restart project

docker-compose down docker-compose up

Certbot renewal

renew certificate

./bin/renew-certs.sh

cron task (monthly)

0 0 1 * * ./bin/renew-certs.sh

About

Automated certificate creation/renewal under docker with HAProxy / letsencrypt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages