Renewing Let's Encrypt SSL Certificate with Docker
Let’s Encrypt CA issues short-lived certificates (90 days). Automated renewal process is preferred, recommended, and encouraged. But in a few situations, automated process is not available, here is how to do it manually when SSL certificate was installed with Docker:
First, update the container to the latest version. The latest version can be found from the release page in GitHub.
The latest is v0.9.1
:
|
|
Turn off application (if running as a Docker container) to free up the HTTPS port 443:
|
|
Renew the certificate by issuing renew
command:
|
|
Restart app (it’s start
not restart
):
|
|
Check the expiration date:
|
|
For more information on renewing, see the Renewing Certificates section from the Certbot documentation.
Settings:
- Certbot v0.9.1
- Docker v1.12.1