Delete old certificates and add new one with same name and it is fails to auto renew

i did installed certificate for my domain but i was unable to access my website so i deleted old certificate from live folder and installed new ones but it have different name and also throwing me error
please tell me how to install with same name as old

I ran this command:
sudo certbot --nginx -d your_domain.com
sudo chmod 600 /etc/letsencrypt/live/your_domain.com/* -- for security purpose
sudo certbot renew --dry-run

It produced this output:- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/invoicemint.in-0002/fullchain.pem (failure)


1 renew failure(s), 0 parse failure(s)

The operating system my web server runs on is :ubuntu

What error?

What was the rest of the output?

4 Likes

Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/invoice.in-0002.conf


Simulating renewal of an existing certificate for invoice.in

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Type: unauthorized
Detail: 3.33.130.190: Invalid response from http://invoice.in/.well-known/acme-challenge/jGJHBof4dF-qqtKHjTt67wtIxZVQEKkmVoGfaEUfuJE: 404

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.

Failed to renew certificate invoice.in-0002 with error: Some challenges have failed.


All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/invoicet.in-0002/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.
also please tell me tell me if i can change the name from invoice-002 to only invoice

hmm...
The names don't seem to match:

  • invoice.in
  • invoicemint.in

Also, whenever I've seen anything like:

It has always indicated that something hasn't gone to plan.
Please show the output of:

certbot certificates

4 Likes

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