Hi,
So I am trying to renew my cert for my domain and I did a dry run and I am getting the error below.
My vhost.conf file for port 80 looks like this and I specify the routing for port 443 in vhost-le-ssl.conf- I can post this if needed. I didn’t change any other files that were installed with apache or certbot.
<VirtualHost *:80>
ServerName displayto.com
Redirect permanent / https://displayto.com/
I am using Apache to handle SSL termination and a reverse proxy for my app. For my distro installed httpd and mod_ssl. This is all being run on an EC2.
Not sure if this is relevant but I first installed everything on one EC2 and it was running properly, then I created another EC2 -> installed apache & certbot ->transferred over the letsencrypt files and it was working properly.
But after the cert expired I am having issues with this new one. The dry run renewal works on the old EC2 but not the new EC2. They have identical configurations because I just copied it so not sure what’s going on.
Any help would be appreciated, I’ve been trying to sort this out this whole week! I think I might be overlooking something simple but I'm not sure.
Here's more info~
My domain is: displayto.com
I ran this command: sudo certbot renew –dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/displayto.com.conf
Simulating renewal of an existing certificate for displayto.com
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: displayto.com
Type: connection
Detail: 54.201.69.89: Fetching https://displayto.com.well-known/acme-challenge/u7lfmWxAtrpnbe3q1tFTHk4vQSgBerIZVzNT6fPVhI8: Invalid host in redirect target "displayto.com.well-known". Check webserver config for missing '/' in redirect target.
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Failed to renew certificate displayto.com with error: Some challenges have failed.
All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/displayto.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My web server is (include version): Apache/2.4.62 (Amazon Linux)
The operating system my web server runs on is (include version):
Amazon Linux version 2023
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 but my machine is a ec2 so I can set which ports are open in the AWS site.
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot version 2.11.0