-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
proposal: crypto/tls: add SetOCSPStaple function #14878
Comments
/cc @agl |
Ping @agl. Does this make sense? |
Ping |
Yes, this makes sense. I had originally expected people to atomically switch the |
Chatted with @agl about this. Alternatively, we could add a |
How's it going with this issue? There hasn't been much activity since early December 2016, but the proposal was accepted, or are we too late in the cycle to do anything? |
This didn't get implemented, and GetCertificate and GetConfigForClient became the standard way to update anything in the server configuration. Caddy for example uses it to dynamically set OCSPStaple. I think we should not add complexity to tls.Certificate, nor yet another callback. Reverting the Proposal-Accepted and passing it to the proposal committee. |
I also poked the code after it was accepted, and I don't see good way to implement it without rewriting huge part of code because of problems mentioned by @kreichgauer. |
Based on the lack of movement since the acceptance 3 years ago and the implementation difficulties noted above, and also the general lack of activity on this issue, this now seems like a likely decline. Leaving open for a week for final comments. |
No change in consensus, so declined. |
OCSPStaple
should be updated by server after it expiration.Today we can't update it directly without data races, and the only one workaround is use
tls.Config.GetCertificate
and return certificate withOCSPStaple
populated.Can we add
SetOCSPStaple
function with mutex totls.Certificate
(just likeSetSessionTicketKeys
) to simplify this?Thanks.
The text was updated successfully, but these errors were encountered: