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 with OCSPStaple populated.
Can we add SetOCSPStaple function with mutex to tls.Certificate (just like SetSessionTicketKeys) to simplify this?
Thanks.
OCSPStapleshould 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.GetCertificateand return certificate withOCSPStaplepopulated.Can we add
SetOCSPStaplefunction with mutex totls.Certificate(just likeSetSessionTicketKeys) to simplify this?Thanks.