I'm running NextcloudPI and an update last week messed some stuff up. Trying to fix it, I made things way worse. I'd now just like to totally clear out all Letsencrypt certs and get a new one. I know I can do this by totally reinstalling the whole Nextcloud server, but I'd like to know whether it's possible to just reinitialize letsencrypt?
Could I just delete /etc/letsencrypt and try to get a new cert?
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. crt.sh | 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: n.trey.nyc
I ran this command: sudo certbot renew --dry-run
It produced this output:
Processing /etc/letsencrypt/renewal/n.trey.nyc.conf
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/renewal.py", line 68, in _reconstitute
renewal_candidate = storage.RenewableCert(full_path, config)
File "/usr/lib/python3/dist-packages/certbot/storage.py", line 463, in init
self._check_symlinks()
File "/usr/lib/python3/dist-packages/certbot/storage.py", line 522, in _check_symlinks
"expected {0} to be a symlink".format(link))
certbot.errors.CertStorageError: expected /etc/letsencrypt/live/n.trey.nyc/cert.pem to be a symlink
Renewal configuration file /etc/letsencrypt/renewal/n.trey.nyc.conf is broken. Skipping.
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates below have not been saved.)
No renewals were attempted.
Additionally, the following renewal configurations were invalid:
/etc/letsencrypt/renewal/n.trey.nyc.conf (parsefail)
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates above have not been saved.)
0 renew failure(s), 1 parse failure(s)
My web server is (include version):
Server version: Apache/2.4.38 (Debian)
Server built: 2021-06-10T10:13:06
The operating system my web server runs on is (include version):
Debian GNU/Linux 10 (buster) x86_64
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):
No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot 0.31.0