-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
ACME certificate fails to renew (incorrect directory) #32191
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
Comments
Got the same on Forgejo 7.x/Gitea 1.21.x. Converting to Gitea paths, I was able to bandaid until bugfix with something like:
Both directories were updated during the certificate renewal. Note: I'm not sure manually stopping and starting the SystemD daemon was necessary. |
I think this will fix: Try to fix ACME directory problem #33072 |
It seems that for some reason, |
Actually it takes effect. |
Backport #33072 by wxiaoguang Haven't really confirmed, but I think it might fix #32191 Co-authored-by: wxiaoguang <[email protected]>
After testing on v1.23.3, where the above fix was merged, I am still getting an incorrect path when a certificate renewal is being attempted. This issue does not seem to occur immediately after gitea is restarted. I think this issue should be reopened. |
If I understand correctly, that directory is from At the moment, I don't see the logic on Gitea side is changed. #33072 and its following up fix only set the global default storage path. So maybe it is a misconfiguration or the ACME package's problem? |
The best guess from my side is like this " Fix ACEM path when renew #33668 "(see the comment) And @techknowlogick , the certmagic code is from "Use caddy's certmagic library for extensible/robust ACME handling (#14177)" |
Backport #33668 by wxiaoguang Try to fix #32191 Co-authored-by: wxiaoguang <[email protected]>
This comment has been minimized.
This comment has been minimized.
The last try: Try to fix ACME (3rd) #33807 |
Description
ACME renewal fails due to certmagic trying to find the certificate in the wrong directory. Initial issuance works just fine though. Certificates located in
/var/lib/gitea/https/certificates/ca.mydomain.com-acme-acme-directory/
but renewals check for the certificate in/var/lib/gitea/.local/share/certmagic/certificates/acme-v02.api.letsencrypt.org-directory/
.certmagic prints:
error while checking if stored certificate is also expiring soon
Relevant parts of my config are below:
Gitea Version
1.21.9
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/Jburso/5004c35ad7f4a0260a85a9044c3802f5
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Running on Alpine 3.20.3 and installed through the community v3.20 repo
Database
SQLite
The text was updated successfully, but these errors were encountered: