greetings! i copied: /etc/letsencypt/live/
to a new host, and destroyed the old host.
can i renew my unexpired certs with certbot? i have recieved email notification of their pending expiry.
thank you
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.
i believe this is for a standalone configuration originally set up with certbot --cert-only. i am not certain of this.
i recieve certbot renewel emails; but am confused as to the nature of my account and cannot understand the details or whether it is relevant for updating the certs, or certbot.
. Unfortunately that's not enough if you want renewal to work. You needed to have copied the entire /etc/letsencrypt directory over.
If you can't do that, it's probably best to just start again, and issue a certificate from scratch. Forget about your old server and its certificates, pretend they don't exist anymore.
You may need to first remove/move the contents of the pre-existing live/ folder, as it may confuse Certbot when it tries to create the new certificate.
root@kalandan:~# mv /etc/letsencrypt/live/tetrisconcept.tv/ /etc/letsencrypt/live/tetrisconcept.tv_$(date -I)
root@kalandan:~# certbot --nginx -d tetrisconcept.tv -d www.tetrisconcept.tv -d gitlab.tetrisconcept.tv
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running nginx -c /etc/nginx/nginx.conf -t.
nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/tetrisconcept.tv/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/tetrisconcept.tv/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] cannot load certificate "/etc/letsencrypt/live/tetrisconcept.tv/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(\'/etc/letsencrypt/live/tetrisconcept.tv/fullchain.pem\',\'r\') error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n')
root@kalandan:~#