Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certbot renew failed #3028

Open
amung966 opened this issue Jul 22, 2021 · 1 comment · May be fixed by #3515
Open

certbot renew failed #3028

amung966 opened this issue Jul 22, 2021 · 1 comment · May be fixed by #3515

Comments

@amung966
Copy link

Is your feature request related to a problem? Please describe.
archive folder has many cert, only first time the file name is cert1.pem

Describe the solution you'd like
we should use live folder, it's link new cert always

Describe alternatives you've considered
update the run-certbot.sh

cp /etc/letsencrypt/live/"$CN"/cert1.pem /var/certs/"$CN"-cert1.pem
cp /etc/letsencrypt/live/"$CN"/chain1.pem /var/certs/"$CN"-chain1.pem
cp /etc/letsencrypt/live/"$CN"/fullchain1.pem /var/certs/"$CN"-fullchain1.pem
cp /etc/letsencrypt/live/"$CN"/privkey1.pem /var/certs/"$CN"-privkey1.pem

copy cert form live folder

Additional context
Thanks everyone

@sschamp
Copy link

sschamp commented Apr 14, 2024

renewal certs (after about 2 months) are stored as /etc/letsencrypt/archive/"$CN"/cert2.pem

so indeed, we should always use /etc/letsencrypt/live/"$CN"/cert1.pem

@sschamp sschamp linked a pull request Apr 14, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants