Sign inSign up

anandology/certbot

By anandology

Updated about 8 years ago

HTTPS certificates make easy using docker + certbot.

Image
0

530

anandology/certbot repository overview

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

Tag summary

Content type

Image

Digest

Size

49.2 MB

Last updated

about 8 years ago

docker pull anandology/certbot