Hi, i have https on my web, i put the ssl certificates for first time 3 months ago with certbot. I am using docker containers and i put the path to the certificates in my nginx.conf to create the container. My ssl certs was about to expire 3 of December 2020 so i did this to renew them:
stopped nginx
docker-compose stop nginx
Dry run command:
sudo certbot-auto renew --dry-run
Renew certificates command:
sudo certbot-auto renew
I got the new certificates. OK
sudo letsencrypt certificates
Attempting to parse the version 1.9.0 renewal configuration file found at /etc/letsencrypt/renewal/b2bmarket.aidimme.es.conf with version 0.31.0 of Certbot. This might not work.
Found the following certs:
Certificate Name: b2bmarket.aidimme.es
Domains: b2bmarket.aidimme.es
Expiry Date: 2021-02-22 08:17:59+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/b2bmarket.aidimme.es/fullchain.pem
Private Key Path: /etc/letsencrypt/live/b2bmarket.aidimme.es/privkey.pem
The path are the same as my nginx.conf so i started nginx container again.
docker-compose -f docker-compose.yml --project-name nginx up -d --build --force-recreate
But i got the old certificates(that expires the next week day 3) not the new one( Expiry Date: 2021-02-22 08:17:59+00:00 (VALID: 89 days) ). I searched in internet and saw that i need to restart the server. But this is production server and i prefer not restarting it. Is it any way to use the new certificates without restarting everything using docker containers?
My domain is:https://b2bmarket.aidimme.es/#/homepage
My web server is (include version): nginx/1.15.6
The operating system my web server runs on is (include version): Ubuntu 16.04.7 LTS
I can login to a root shell on my machine (yes or no, or I don't know):yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot --version
certbot 0.31.0
certbot-auto --version
certbot 1.9.0
Thanks