Creating a new certificate for same domain lead to new name

after i had a problem with the certificate of a domain, i deleted the certificate of the domain in the 3 folders (renew, live,archive) then ran the creation command again

My domain is:www.referencementschool.com

I ran this command:./certbot-auto --webroot -w /home/path/ -d www.referencementschool.com

It produced this output:

My web server is (include version):Apache 2.4

The operating system my web server runs on is (include version):Debian 8

My hosting provider, if applicable, is:

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):yes

former certificate name was referencementschool.com, but new one is referencementschool.com-0001, why can’t i create one with forme name?

Hi @refschool,

It isn't a good idea to remove files and dirs manually, you have the command ./certbot-auto delete for these purposes.

Are you sure you removed all references to this domain?.

find /etc/letsencrypt/ -iname "*referencementschool*"

grep -ri 'referencementschool' /etc/letsencrypt/*

ls -l /etc/letsencrypt/live/*referencementschool*

./certbot-auto certificates

Keep in mind that you can use the --cert-name option to specify the name of your certificate.

Example using the command you posted and referencementschool.com being the name of certificate:

./certbot-auto --webroot --cert-name referencementschool.com -w /home/path/ -d www.referencementschool.com

Cheers,
sahsanu

1 Like

thank you for the commands, indeed the old name is still present, but i could not see the referencementschool.com-0001 anymore strange, everything is as normal now

1 Like

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