-
Notifications
You must be signed in to change notification settings - Fork 242
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
error message every 10 minutes about managing the server certificate #337
Comments
I am receiving the same messages. Did you manage to find out the cause? I've never run acme-dns as root, so that can be ruled out. I built the executable from the latest source using go 1.18.1 and am running it on a fresh Ubuntu 22.04.3 using the provided systemd service. I also have |
I ended up not using acme-dns and so I don't have more info. |
May I ask what you are using as an alternative? |
(Probably not helpful, but...) I was planning to use acme-dns to manage certs on a private development network on a DNS sub-domain. It worked OK, but management decided to just buy a wildcard cert for that subdomain, making acme-dns moot in our case. |
Ah okay. I thought there might be a different solution to acme-dns but that does not seem to be the case then. |
For the rest that are facing the cache issue: I have found a solution but am not sure whether this is the correct patch as I have added quite a bit of source code to acme-dns. So try it out and give feedback whether it works for you. It is based on the refactoring branch.
|
I have the same issue with the current master @27e8251d11ba0a08c9b576fc04d61c1c7ba9b500
This issue is independent of having only a single server and account in On master @6ba9360156b8658dbbd652eea100c11cc098b1f8 I do not see messages for any caches, and do not get any renew errors every 10 minutes. I found a similar issue for caddyserver/caddy#5162 (with PR caddyserver/caddy#5169 merge caddyserver/caddy@ac96455) also related how to use certmagic. Update 2024-04-11: I got a solution for the current release, currently testing all cases (renewal, revoked, etc.) plus adding some more debug log messages. |
No separate certmagic cache needed. Default config and cache are sufficient to handle the certificates for the HTTP API. Updated to certmagic v0.20.
Fix for current master developed and tested. Pull rquest is #351 |
Add a nix devshell for go compiles with go 1.20 Fix certmagic usage. Fixes joohoi#337 Updated to certmagic v0.20. Don't convert static records to lowercase Replace adduser with useradd Signed-off-by: Joe Martin <[email protected]>
ty. wonder why this isn't merged yet. manually applied and now i have a new cert again! 👍 |
I'm getting error output like this every 10 minutes from acme-dns. Is this spurious? Can I do anything to prevent the error?
The certificate used by acme-dns for its HTTPS traffic works fine, in that there is no complaint from the client side. In config.cfg I have
tls = "letsencrypt"
.I'm running acme-dns as a systemd service, running as the unprivileged acme-dns user. /var/lib/acme-dns/api-certs and everything comprised in there is owned and writable by the acme-dns user.
I tried removing all of /var/lib/acme-dns/api-certs and running acme-dns service from scratch. It rebuilds the cert in a new /var/lib/acme-dns/api-certs directory, but I soon get the same recurring error messages.
It appears that the error message comes from the github.com/caddyserver/certmagic module used by acme-dns, but I have not been able to work out why it throws that error.
I ran acme-dns as root for a while before improving the setup to run as an unprivileged user. I wonder if that left some remnant that needs to be cleaned up, but I can't find any such thing.
The text was updated successfully, but these errors were encountered: