Hi,
I have two servers, staging and production. The staging server is still renewing as expected with the following commands, but I can no longer renew on production using http-01. Previously, I needed to manually renew using DNS, but I would like to reset up automatic renewal.
Any advice appreciated.
-G
–
My domain is: api.cogrammar.com
I ran this command:
sudo certbot renew --apache --preferred-challenges http --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/api.cogrammar.com.conf
Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for api.cogrammar.com
http-01 challenge for hyperiondev.cogrammar.com
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (api.cogrammar.com) from /etc/letsencrypt/renewal/api.cogrammar.com.conf produced an unexpected error: Failed authorization procedure. api.cogrammar.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://api.cogrammar.com/.well-known/acme-challenge/3NufqUa1X5AWnbYkwc1J9UCxoyIXkrrFmagjPMg5OxQ [52.14.210.95]: "
Not Found
The requested URL /.well-known/acme-challenge/3NufqUa1X5AWnbYkwc1J9UCxoyIXkrrFmagjPMg5OxQ was not found on ". Skipping.
Processing /etc/letsencrypt/renewal/demo.cogrammar.com.conf
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator apache, Installer apache
Renewing an existing certificate
new certificate deployed with reload of apache server; fullchain is
/etc/letsencrypt/live/demo.cogrammar.com/fullchain.pem
The following certs could not be renewed:
/etc/letsencrypt/live/api.cogrammar.com/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)
The following certs were successfully renewed:
/etc/letsencrypt/live/demo.cogrammar.com/fullchain.pem (success)
The following certs could not be renewed:
/etc/letsencrypt/live/api.cogrammar.com/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: api.cogrammar.com
Type: unauthorized
Detail: Invalid response from
https://api.cogrammar.com/.well-known/acme-challenge/3NufqUa1X5AWnbYkwc1J9UCxoyIXkrrFmagjPMg5OxQ
[52.14.210.95]: "Not Found
The requested URL
/.well-known/acme-challenge/3NufqUa1X5AWnbYkwc1J9UCxoyIXkrrFmagjPMg5OxQ
was not found on "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):
ubuntu@api.cogrammar.com:~$ apache2 -v
Server version: Apache/2.4.29 (Ubuntu)
Server built: 2019-09-16T12:58:48
The operating system my web server runs on is (include version):
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
My hosting provider, if applicable, is:
AWS
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 0.31.0