Running ubuntu on google compute engine, apache 2.4 server.
We normally run with http off. When attempting to renew a certificate, we turn on http via a pre-hook, and turn it back off with a post-hook. However, this doesn't seem to work. Is this a timing issue? Does certbot wait for the pre-hook to complete before attempting to renew? I have verified that the pre-hook does indeed turn http on.
My domain is:xbiologix.net
I ran this command:
cd /etc/letsencrypt/ && /usr/bin/certbot renew --pre-hook "gcloud compute instances add-tags my-vm-name --zone us-west1-b --tags http-server" --post-hook "gcloud compute instances remove-tags my-vm-name --zone us-west1-b --tags http-server; apache2ctl -k graceful" &>> /var/log/letsencrypt/renew.log
It produced this output:
2023-05-11 21:54:31,475:INFO:certbot.auth_handler:Performing the following challenges:
2023-05-11 21:54:31,476:INFO:certbot.auth_handler:http-01 challenge for www.xbiologix.net
2023-05-11 21:54:31,476:INFO:certbot.auth_handler:http-01 challenge for xbiologix.net
2023-05-11 21:54:34,878:INFO:certbot.auth_handler:Waiting for verification...
2023-05-11 21:54:45,383:INFO:certbot.auth_handler:http-01 challenge for www.xbiologix.net
2023-05-11 21:54:45,383:INFO:certbot.auth_handler:http-01 challenge for xbiologix.net
2023-05-11 21:54:45,384:DEBUG:certbot.reporter:Reporting to user: The following errors were reported by the server:
Domain: www.xbiologix.net
Type: connection
Detail: 35.230.53.86: Fetching http://www.xbiologix.net/.well-known/acme-challenge/5suGsYwRKZeJEXWFK4K7z8XIRhTXxSOjyPeEB2ok_qE: Timeout during connect (likely firewall problem)
My web server is (include version):apache 2.4.41
The operating system my web server runs on is (include version):ubuntu 20.04.1
My hosting provider, if applicable, is:google compute engine
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):0.40.0