-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
acme_server sometimes delivers outdated intermediate certificate when clients ask for certificate renewal #4517
Comments
@maraino if you don't mind the ping, I think we could use some help to fix this one. The problem:
Maybe you have a better idea for how this could be fixed, but I'm thinking what would be nice is if there was a variant of |
@francislavoie I think it makes sense to implement something like that and it won't be hard to do. The way we do this in our hosted product is by automatically reloading the CA when the configuration changes, there're ways to do this without downtime. Besides adding the new configuration option that you propose, using a chain of intermediates ( chain, signer := c.getIssuer() And as very hacky solution would be to replace the certificate with a custom I should be able to implement this next, week, but we always welcome a PR. |
Cool! Thanks! Yeah I tried to dig through the call chain in No rush on this, it's not mission-critical right now. |
PR was merged to master smallstep/certificates#879 |
* caddypki: Load intermediate for signing on-the-fly Fixes #4517 Big thanks to @maraino for adding an API in `smallstep/certificates` so that we can fix this * Debug log * Trying a hunch, does it need to be a pointer receiver? * Clarify pointer receiver Co-authored-by: Matt Holt <[email protected]> Co-authored-by: Matt Holt <[email protected]>
This is a reminder for the issue reported over there in the Caddy Community:
https://caddy.community/t/internal-ca-certificate-renewal-does-not-refresh-intermediate-cert-properly
Observed with Caddy version 2.4.6
Quoting @francislavoie for a summary of the observations:
First feedback (by @francislavoie):
As a workaround, force reloading Caddy every once in a while might help (as suggested by @francislavoie):
The text was updated successfully, but these errors were encountered: