mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-14 06:13:33 +01:00
Allow for ACME EAB (External Account Binding) credentials #98
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @casperfrx on GitHub (Aug 2, 2025).
Had to dig to find the config parameter
ca_dir_urlthat allows me to use a custom ACME directory which is nice but it's limited to those that require no EAB credentials as far as I can tell.See for example: https://cloud.google.com/certificate-manager/docs/public-ca-tutorial#register-acme
Would be nice if it could be added. You're already halfway there.
@baltazartroisville commented on GitHub (Aug 2, 2025):
godoxy uses lego under the hood, which already supports eab. would be nice if you could try to implement it casperfrx, thank you in advance!
@casperfrx commented on GitHub (Aug 3, 2025):
Haha cheeky, as much as I can read and hack into code, along with Rust, Go has been at the top of my would-like to spend time mastering but I just can't find enough time for it.
However due to a comment from @yusing about
EAB_environment variable (that I typically couldn't find anymore where I saw them mention it) I took a look at the way theca_dir_urland the objects were made along with the lego library.It seems that it's actually not even that difficult:
https://github.com/go-acme/lego/blob/master/cmd/flags.go#L56C20-L56C28
So I of course went ahead and added these
to my
.envmaking sure it was loaded by the proxy but no dice. I think it could be as simple as a new env load somewhere. Also I checked where this resource is made andis close to
That references the
Registration.Userbut the parameters are inRegistration.Registarhttps://github.com/go-acme/lego/blob/master/registration/registar.go#L26I'll let @yusing decide what's most elegant/stable to use. I think the environment variables with a small tweak could already do it.
@yusing commented on GitHub (Aug 17, 2025):
Implemented, please check if it works. Docs here: https://docs.godoxy.dev/Certificates-and-domain-matching#eab
@yusing commented on GitHub (Sep 10, 2025):
Since this issue has been staled for 3 weeks, I'm closing it now. Feel free to reopen it when needed. Thank you all.