/ linux

Let's encrypt. Delete a certificate.

If running LetsEncrypt's certbot multiple times with different domains it will create also different certificates. This leads to notifications of expiring certificate although they might not be used any longer.
To prevent this you can delete existing certificates.

Show existing certificates:

sudo certbot certificates

Delete a certain certificate:

sudo certbot delete

This returns a list of existing certificate and asks the user which one to delete:

Which certificate would you like to delete?
------------------------------------------------------------
1: yyy.domain.de
2: yyy.domain.de-0001
------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1

------------------------------------------------------------
Deleted all files relating to certificate yyy.domain.de.
------------------------------------------------------------