Updating the SSL certificate for a Web server running in a Docker container¶
To update the SSL certificate, you need to:
-
Enter the
nginx-certbot
container:Result: You gain access to the command line inside the container.
-
Create a directory for ACME validation:
Result: The necessary directory structure for domain verification is created.
-
Set the correct permissions:
Result: The correct permissions are set for the web server.
-
Renew the certificate:
Result: The certificate renewal process is initiated. A success message will be displayed upon completion.
-
Exit the container:
Result: You exit the container's command line and return to the main system.
-
Restart the container:
Result: The container is restarted, applying the new certificate to the web server.