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. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:chatbot.cn
I ran this command: ./certbot-auto certonly -d *.chatbot.cn --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory
It produced this output:
My web server is (include version):nginx
The operating system my web server runs on is (include version):centos
My hosting provider, if applicable, is:vultr
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):ssh
My problem
My problem is that the https certificate is almost expired, I want to renew, and then accidentally generated a new certificate, but now I want to renew the old certificate, I deleted the new certificate, and then put the old certificate Overwrite, found that the error configuration file is wrong, guess the configuration file is the configuration file of the new certificate, the old certificate configuration file is not backed up, help
chatbot.cn.conf(new)
# renew_before_expiry = 30 days
version = 0.27.1
archive_dir = /etc/letsencrypt/archive/chatbot.cn
cert = /etc/letsencrypt/live/chatbot.cn/cert.pem
privkey = /etc/letsencrypt/live/chatbot.cn/privkey.pem
chain = /etc/letsencrypt/live/chatbot.cn/chain.pem
fullchain = /etc/letsencrypt/live/chatbot.cn/fullchain.pem
# Options used in the renewal process
[renewalparams]
authenticator = manual
account = 8bf296e0c0e491a529108b3456381eb5
pref_challs = dns-01,
manual_public_ip_logging_ok = True
server = https://acme-v02.api.letsencrypt.org/directory
How can I retrieve my old certificate configuration file?
Did you also use Manual when you request a certificate last time?
If so, you are not able to renew the certificate without specifying “renew hook” & “clean up hook”…
If your DNS provider does not provide API… you would need to use manual everytime & aren’t able to renew the certificate automatically… Which means you’ll need to request a new certificate everytime.
Certbot's way of referring to this can make this confusing for some people. Although renewal is always implemented by issuing a new certificate, when Certbot manages certificates for you it draws a distinction between certificates that are intended to replace older certificates and those that are entirely unrelated to older certificates. You can always see the status of the Certbot-managed certificates by running certbot certificates.
run ./certbot-auto certificates Report an error Renewal configuration file /etc/letsencrypt/renewal/chatbot.cn.conf produced an unexpected error: expected /etc/letsencrypt/live/chatbot.cn/privkey.pem to be a symlink. Skipping.
How can I get the storage parameters of the old certificate?
I ran the command you said, but I got a new certificate renewal (configuration of the new certificate), not the renewal of the old certificate (the configuration of the old certificate), how can I renew my old certificate?and thank you