Fixing certbot’s “parsefail” error during certificate renewal

Additionally, the following renewal configurations were invalid:
/etc/letsencrypt/renewal/example.com.conf (parsefail)
Traceback (most recent call last):
File "/opt/certbot/src/certbot/certbot/_internal/renewal.py", line 64, in _reconstitute
renewal_candidate = storage.RenewableCert(full_path, config)
File "/opt/certbot/src/certbot/certbot/_internal/storage.py", line 465, in __init__
self._check_symlinks()
File "/opt/certbot/src/certbot/certbot/_internal/storage.py", line 532, in _check_symlinks
"expected {0} to be a symlink".format(link))
certbot.errors.CertStorageError: expected /etc/letsencrypt/live/example.com/cert.pem to be a symlinkRenewal configuration file /etc/letsencrypt/renewal/example.com.conf is broken. Skipping.
*@*:/etc/letsencrypt/live/example.com# rm cert.pem chain.pem fullchain.pem privkey.pem*@*:/etc/letsencrypt/live/example.com# ln -s /etc/letsencrypt/archive/example.com/cert1.pem cert.pem*@*:/etc/letsencrypt/live/example.com# ln -s /etc/letsencrypt/archive/example.com/chain1.pem chain.pem*@*:/etc/letsencrypt/live/example.com# ln -s /etc/letsencrypt/archive/example.com/fullchain1.pem fullchain.pem*@*:/etc/letsencrypt/live/example.com# ln -s /etc/letsencrypt/archive/example.com/privkey1.pem privkey.pem

Senior front end engineer / charlesstover.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store