How to clean up duplicate certificates


#1

Please fill out the fields below so we can help you better.

My domain is: paul.kim

I ran this command: sudo letsencrypt --apache -d paul.kim -d www.paul.kim -d blog.paul.kim -d www.blog.paul.kim

It produced this output:
error: only one vhost allowed in .conf. So I fixed the issue by creating another vhost.conf file and only adding a single vhost to each .conf file.

My operating system is (include version): Ubuntu Server 16.04 64 bit

My web server is (include version): Apache 2.4

My hosting provider, if applicable, is: Amazon EC2 instance

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


How can I clean up duplicate certificates? I ran let’s encrypt command for the domain paul.kim and now I have 2 certificates: paul.kim and paul.kim-0001. I messed up on the first one paul.kim so the second one is the correct one (paul.kim-0001) is the correct one.

Now it seems that certificates for both paul.kim and the duplicate paul.kim-0001 will be renewed. How can I remove paul.kim? Or is it okay to just leave it there since everything is working fine. I’m just concerned because 2 certificates are issued for a single domain and each time I renew, both certs will be renews. I just really need cert renewal for paul.kim-0001

Looking over other posts and the document, it seems I need to delete the following:

/etc/letsencrypt/archive/paul.kim/
/etc/letsencrypt/live/paul.kim/
/etc/letsencrypt/renewal/paul.kim.conf

And leave the following alone intact:

/etc/letsencrypt/archive/paul.kim-0001/
/etc/letsencrypt/live/paul.kim-0001/
/etc/letsencrypt/renewal/paul.kim-0001.conf

Is this correct?

It would be extremely helpful if there was documentation on how to handle removing duplicate certificates (ending in -0001, etc) Or letting us know its okay to just leave it as is. Everything is working fine, but I just have this extra certificate and am not sure if I should just leave it alone or need to clean it up.


#2

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