Delete all certificates and private keys by mistake

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. |, so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:
/root/ --issue -d -d --cert-file /etc/letsencrypt/live/ --key-file /etc/letsencrypt/live/ --fullchain-file /etc/letsencrypt/live/ -w /home/ --force

It produced this output:
[07.28.2021_11-18-13] Failed to obtain SSL for: and:
[07.28.2021_11-18-13] Trying to obtain SSL for:
[07.28.2021_11-18-15] Failed to obtain SSL, issuing self-signed SSL for:
[07.28.2021_11-18-15] {'': (554, b'5.7.1 Relay access denied')}
[07.28.2021_11-18-15] Self signed SSL issued for
[07.28.2021_07-22-22] invalid literal for int() with base 10: 'no'. [SSHServer.findSSHPort]
[07.28.2021_16-00-04] [Errno 111] Connection refused

My web server is (include version): Cyberpanel 2.2

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

My hosting provider, if applicable, is: Local Server

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):
Cyberpanel 2.2

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
[root @ webhosting ~] # certbot-auto --version
bash: certbot-auto: command not found ...

I use the help translator, I hope you understand me. I had problems creating subdomains and I think that I exceeded the limit of requests, and then I made the mistake of deleting all the certificates from the folder "rm -rf /etc/letsencrypt/live/." to try to generate again, and since then I can not solve it again, I have waited 15 days and it still does not generate a new certificate. Could you give me more light please.

I would start by recreating the file path:
mkdir /etc/letsencrypt/live/
Then rerun the command.
Please don't script the use of "--force",

I did it and it solved with autogenerated certificate. Now I tried how you indicate it without the --force and I get the following message:

[root@webhosting ~]# /root/ --issue -d -d ww --cert-file /etc/letsencrypt/live/ .pem --key-file /etc/letsencrypt/live/ --fullchai n-file /etc/letsencrypt/live/ -w /home/enlacesy
[mié jul 28 13:58:08 -04 2021] Using CA:
[mié jul 28 13:58:09 -04 2021] No EAB credentials found for ZeroSSL, let's get o ne
[mié jul 28 13:58:09 -04 2021] is using ZeroSSL as default CA now.
[mié jul 28 13:58:09 -04 2021] Please update your account with an email address first.
[mié jul 28 13:58:09 -04 2021] --register-account -m
[mié jul 28 13:58:09 -04 2021] See: iki/
[mié jul 28 13:58:09 -04 2021] Please add '--debug' or '--log' to check more details.
[mié jul 28 13:58:09 -04 2021] See: iki/

Also try what the error says:

[root@webhosting ~]# --register-account -m
[mié jul 28 14:05:03 -04 2021] No EAB credentials found for ZeroSSL, let's get one
[mié jul 28 14:05:04 -04 2021] Registering account:
[mié jul 28 14:05:06 -04 2021] Registered
[mié jul 28 14:05:06 -04 2021] ACCOUNT_THUMBPRINT='N30Swg9NI7F1pd2ZzNlrB4HYLLH6aJx4XDGNH21Hdes'
[root@webhosting ~]# has been sold to ZeroSSL and uses their ACME server by default since June this year if you're running the latest "master" version currently. If you want to keep using Let's Encrypt, you'll need to tell to do so. Please refer to the documentation on how to do that (I have no idea..)

1 Like

Uff, good information, I did not know about the change of ACME and ZeroSSL, but for the moment I executed with the command --debug as it said in the error, and it worked!

The command you run:
/root/ --issue -d -d --cert- file /etc/letsencrypt/live/ --key-file /etc/letsencrypt/live/ --fullchain-file /etc/letsencrypt/live/ -w /home/ --debug

the result:
[mié jul 28 14:39:37 -04 2021] Success
[mié jul 28 14:39:56 -04 2021] Cert success.
[mié jul 28 14:39:56 -04 2021] Your cert is in /root/
[mié jul 28 14:39:56 -04 2021] Your cert key is in /root/
[mié jul 28 14:39:56 -04 2021] The intermediate CA cert is in /root/
[mié jul 28 14:39:56 -04 2021] And the full chain certs is there: /root/
[mié jul 28 14:39:57 -04 2021] Installing cert to:/etc/letsencrypt/live/
[mié jul 28 14:39:57 -04 2021] Installing key to:/etc/letsencrypt/live/
[mié jul 28 14:39:57 -04 2021] Installing full chain to:/etc/letsencrypt/live/
[mié jul 28 14:39:57 -04 2021] _on_issue_success

Thank you once for your help, you have guided me to solve it ...

See: |
The latest cert is NOT from LE - it is from ZeroSSL.

1 Like

I notice something interesting in

https:// github .com/acmesh-official/

To Change default CA;


Should be:


Got me wondering....
Go figure?


Stage against LE but certify against 0SSL?
Half ax coding...


:rage: :face_with_symbols_over_mouth:


That's probably because you registered a ZeroSSL account with your previous command. As @rg305 already pointed out, you're using a ZeroSSL certificate now. should also have a command line option to set the ACME provider.


If you want to continue using + Let's Encrypt, this command will suffice: --set-default-ca --server letsencrypt

Note that this will not change CA's for existing certificates, so any existing ZeroSSL (or Let's Encrypt) certificate will continue to be renewed with that CA. [There was a bug on master that this wouldn't hold for very very old configs, but I believe this is fixed now]

ZeroSSL does not document any (public) staging enviroment at this time.

1 Like

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