Unable to renew certbot certificate

Hi Guy,

first i will tell you my website
it is made of using php and mysql with apache server.

I have tried to renew certificate but it is getting below error.

Attempting to renew cert (simpaenergy.in) from /etc/letsencrypt/renewal/simpaenergy.in.conf produced an unexpected error: Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80… Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/simpaenergy.in/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/simpaenergy.in/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)

It seems you have made some changes since your last renewal.
Cerbot can’t find the virtual host that handles simpaenergy.in
Please show the output of:
apachectl -S

or you are on the wrong system.
Is the external IP 3.6.45.236 ?

ubuntu@ip-172-31-17-134:~$ apachectl -S
AH00526: Syntax error on line 37 of /etc/apache2/sites-enabled/000-default-le-ss l.conf:
SSLCertificateFile: file ‘/etc/letsencrypt/live/simpaenergy.in/fullchain.pem’ do es not exist or is empty
Action ‘-S’ failed.
The Apache error log may have more information.

run certbot update_symlinks and retry.

if that fails, run a2dissite 000-default-le-ssl and then run certbot --dry-run

But my certificate is not expired yet but i received an email it will expire on 8th april.
Should i do this renew process or to wait till 8th april.

You are supposed to renew certificates when they have one third of their validity left, so 90/3 = 30 days before expiration.

The emails start coming 20 days before expiry. You should renew anytime from day 60 to day 88; 88-90 becomes risky.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.