Hi I’m trying to auto-renew and it seems like only one of my entries was renewed (.www). I checked on Amazon route 53 for my DNS entry and it all looks correct
I ran this command:
certbot-auto renew -i apache -a webroot -w /opt/server/tomcat8/webapps/
It produced this output:
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/hemaconhealth.com/fullchain.pem (failure)
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):
Tomcat 8.0.36
The operating system my web server runs on is (include version):
4.9.32-15.41.amzn1.x86_64
My hosting provider, if applicable, is:
Amazon
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 1.5.0
If you create a file /opt/server/tomcat8/webapps/test.txt, can you see its contents at Hemacon Valley? If you create a file /opt/server/tomcat8/webapps/.well-known/acme-challenge/test2.txt, can you see it at Hemacon Valley?
If not, the path /opt/server/tomcat8/webapps that you specified with -w isn't currently correct for this purpose.
(Also, Certbot remembers all of these options for you from when you originally got the certificate. In most cases, it should be enough just to run certbot renew and have Certbot use the remembered options, instead of re-specifying them.)
Hello thank you both for the replies. I initally just ran certbot-auto renew but I had failures from both www.hemaconhealth.com and hemaconhealth.com. I don’t know what happened but the www.hemaconhealth.com got renewed but not the other one.
@schoen I tried creating those files in that path but I can’t reach it either, yet that’s the path my webapps are setup at.
@_az I tried specifying /ROOT both on the command line and also the .conf file (the www had /ROOT)
Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for hemaconhealth.com
http-01 challenge for www.hemaconhealth.com
Using the webroot path /opt/server/tomcat8/webapps/ROOT for all unmatched domains.
Waiting for verification…
Challenge failed for domain hemaconhealth.com
Challenge failed for domain www.hemaconhealth.com
http-01 challenge for hemaconhealth.com
http-01 challenge for www.hemaconhealth.com
Cleaning up challenges
Attempting to renew cert (hemaconhealth.com) from /etc/letsencrypt/renewal/hemaconhealth.com.conf produced an unexpected error: Some challenges have failed… Skipping.
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for www.hemaconhealth.com
Using the webroot path /opt/server/tomcat8/webapps/ROOT for all unmatched domains.
Waiting for verification…
Challenge failed for domain www.hemaconhealth.com
http-01 challenge for www.hemaconhealth.com
Cleaning up challenges
Attempting to renew cert (www.hemaconhealth.com) from /etc/letsencrypt/renewal/www.hemaconhealth.com.conf produced an unexpected error: Some challenges have failed… Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/hemaconhealth.com/fullchain.pem (failure)
/etc/letsencrypt/live/www.hemaconhealth.com/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/hemaconhealth.com/fullchain.pem (failure)
/etc/letsencrypt/live/www.hemaconhealth.com/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)
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.
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.
That worked! And I was able to renew my certs using the command. Does it take a while to propagate the cert? Still seeing Not Secure when I hit my site
Oh oops, for some reason I thought you were running Apache httpd for SSL termination. Turns out you are not.
In this case, that bundle.pfx is not automatically generated by Certbot. You probably created it by hand last time. You can create it by running something like: