I had renewed last 3 times with this method but this time I am unable to do. I am posting my domain name as "example.com" instead of actual domain name. Please help me out if you can.
All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/example.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
The following errors were reported by the server:
Domain: subdomain.example.com
Type: unauthorized
Detail: The key authorization file from the server did not match
this challenge. Expected
"BGhayPEmTkBXH4_GtCUy4P66aRQnPZwf_1_HB7ipPI8.glxV6wehIZ878lzgca09O_0nEEa33A1ACmJbrQcAfgU"
(got
"z0wbRWvXAM1liHkXKXz3IyPwAH3CwB3Xodv_59bi6hQ.glxV6wehIZ878lzgca09O_0nEEa33A1ACmJbrQcAfgU")
Domain: www.subdomain.example.com
Type: unauthorized
Detail: The key authorization file from the server did not match
this challenge. Expected
"ihZUwPomu3azGllagZtC4J1ko4XkkHVbc0aXErO6x4w.glxV6wehIZ878lzgca09O_0nEEa33A1ACmJbrQcAfgU"
(got
"z0wbRWvXAM1liHkXKXz3IyPwAH3CwB3Xodv_59bi6hQ.glxV6wehIZ878lzgca09O_0nEEa33A1ACmJbrQcAfgU")
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): Apache/2.4.55
The operating system my web server runs on is (include version): Amazon Linux 2
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 1.11.0
VirtualHost configuration:
*:80 is a NameVirtualHost
port 80 namevhost example.com (/etc/httpd/sites-enabled/examplecom.conf:1)
alias www.example.com
*:443 is a NameVirtualHost
default server ip-172-31-14-130.ap-south-1.compute.internal (/etc/httpd/conf.d/ssl.conf:56)
port 443 namevhost ip-172-31-14-130.ap-south-1.compute.internal (/etc/httpd/conf.d/ssl.conf:56)
port 443 namevhost subdomain.example.com (/etc/httpd/sites-enabled/subdomainexamplecom443.conf:1)
alias www.subdomain.example.com
port 443 namevhost example.com (/etc/httpd/sites-enabled/examplecom443.conf:1)
alias www.example.com
Please note that there is another domain hosted and that domain is using PAID SSL by COMODO. I have removed that line before posting here. Posting full output again:
VirtualHost configuration:
*:80 is a NameVirtualHost
default server anotherdomain.com (/etc/httpd/sites-enabled/anotherdomaincom.conf:1)
port 80 namevhost anotherdomain.com (/etc/httpd/sites-enabled/anotherdomaincom.conf:1)
alias www.anotherdomain.com
port 80 namevhost example.com (/etc/httpd/sites-enabled/examplecom.conf:1)
alias www.example.com
*:443 is a NameVirtualHost
default server ip-172-31-14-130.ap-south-1.compute.internal (/etc/httpd/conf.d/ssl.conf:56)
port 443 namevhost ip-172-31-14-130.ap-south-1.compute.internal (/etc/httpd/conf.d/ssl.conf:56)
port 443 namevhost subdomain.example.com (/etc/httpd/sites-enabled/subdomainexamplecom443.conf:1)
alias www.subdomain.example.com
port 443 namevhost anotherdomain.com (/etc/httpd/sites-enabled/anotherdomaincom443.conf:1)
alias www.anotherdomain.com
port 443 namevhost example.com (/etc/httpd/sites-enabled/teainntechin443.conf:1)
alias www.example.com
It is really hard to help diagnose an issue with so much redacted information. Seriously, when your website is live, everyone including all the search engines and "script kiddies" will have your "number" (so to speak)... At least "PM" one of the volunteers that are helping you with your concerns so we/they/he/she can help you resolve your issue. We are here to help but we do not have a crystal ball!
@MikeMcQ Yes, there was the issue with VHost and we have rectified as you suggested. Now its working. Thank you so much for the time and support. Really appreciated.