Public Repository

Last pushed: a year ago
Short Description
HTTPS certificates make easy using docker + certbot.
Full Description

This docker image makes it easier to setup and renew HTTPS certificates using certbot.

How to generate certificates

To generate certificates, stop your web server and run the following:

$ docker run --rm -it --volume /etc/letsencrypt:/etc/letsencrypt -p 443:443 anandology/certbot certbot certonly -n --standalone --agree-tos -m {{your_email}} -d {{domain1}} -d {{domain2}}

How to renew certificates

The certbot certificates are valid only for 30 days and they have to be renewed periodically.

Run the following to renew the certificates:

$ docker run --rm -it --volume /etc/letsencrypt:/etc/letsencrypt anandology/certbot  certbot renew

You may want to run the above periodically in a crontab. Here is the same crontab entry:

48 21 * * * docker run --rm -it --volume /etc/letsencrypt:/etc/letsencrypt anandology/certbot  certbot renew

References

Docker Pull Command
Owner
anandology

Comments (0)