Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: mozib.io
I ran this command: certonly --webroot --noninteractive --email admin@mozib.io --agree-tos --no-eff-email --cert-name certs -w /var/www/html/mozib.io/public_html -d mozib.io -d www.mozib.io
It produced this output: Renewing certificates for mozib.io
My web server is (include version): Apache 2.4.62
The operating system my web server runs on is (include version): Docker on Ubuntu 20.04 using httpd:2.4 container
My hosting provider, if applicable, is: N/A
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): 3.0.0
I am running Certbot and Apache on separate Docker containers and link them via a folder in the host, e.g.
services:
webserver:
volumes:
./certs:/usr/local/apache2/ssl/letsencrypt
certbot:
volumes:
./certs:/etc/letsencrypt
Everything works fine as long as I don't touch the certs folder on the Docker host. Running the certbot command above reports certificates are not up for renewal, which is correct. However, when I backup the folder, delete its contents and then restore it from the backup, running the certbot command causes certbot to always seek new certificates and ignore the existing ones. New certificates are placed in folders called certs-0001, certs-0002 etc. I ensure all permissions and timestamps are preserved when backing up the certs folder by issuing the command cp -a
when copying.
I am just wondering why this is the case.
Thank you.