Hello,
I have a Flask app running on Google’s Compute Engine and got a domain (lightravel.me) from Porkbun. I configured the IP of the instance to be static, I created all the necessary DNS records in GCP Cloud DNS (name servers for google cloud, A records for lightravel.me and www.lightravel.me, and an SOA for google cloud domains.), added the name servers to the Porkbun records, and then installed Certbot on the server.
The installation of the certificate went without problems but when I did a dry run test for certificate renewal I got some errors and I can’t figure out what is the problem.
Can anyone give me a hand in figuring out what the problem is and fix it? Thank you!
My domain is: lightravel.me
I ran this command: sudo certbot renew --dry-run
It produced this output:
Processing /etc/letsencrypt/renewal/lightravel.me.conf
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for www.lightravel.me
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (lightravel.me) from /etc/letsencrypt/renewal/lightravel.me.conf produced an unexpected error: Failed authorization pr
ocedure. www.lightravel.me (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response
from https://lightravel.me/ [34.68.73.142]: “<!doctype html>\n\n\n \n Deals \n \n <script src=“https://kit.fontawe
some.com/223223d3d8.js” crossorigin=”". Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/lightravel.me/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/lightravel.me/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)
1 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: www.lightravel.me
Type: unauthorized
Detail: Invalid response from https://lightravel.me/
[34.68.73.142]: “<!doctype html>\n\n\n \n Deals
\n \n <script
src=“https://kit.fontawesome.com/223223d3d8.js” crossorigin=”"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is (include version): Nginx 1.14.0
The operating system my web server runs on is (include version): Ubuntu 18.04 LTS
My hosting provider, if applicable, is: the app runs on Google Compute Engine
I can log in to a root shell on my machine (yes or no, or I don’t know): Yes I can. I use the web SSH client of GCP
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
The Certbot version: 0.31.0