You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check OCSP as part of determining if the certificate is due for renewal #1028
I think we should be careful here to only say that a certificate needs to be renewed if we can verify that the certificate is revoked. If we fail to obtain/validate the OCSP response for example, we should not say the certificate needs to be renewed. We probably also do not want to crash Certbot in this case.
I worry that we could find ourselves in the future scrambling to implement this in response to mass revocation CA side and wishing we would have done it sooner
@bmw Any opinion about an ACME entry point to check if the certificate needs to be renewed? It could solve the problem of the OCSP cache and allow the renewals before the effective revocation.
There is the possibility that sidestepping the cache and hitting our origin directly will cause massive service degradation. The OCSP cache offload is ~90% - 95% of the traffic (depending on month) at our CDN which equates to hundreds of terabytes that don't hit our loadbalancers. There was an incident back in May of 2017 where the OCSP cache was purged and we had quite the painful incident.
I worry that we could find ourselves in the future scrambling to implement this in response to mass revocation CA side and wishing we would have done it sooner
Yeah. I spent this morning doing more scrambling than I wish I would have had to, but I have a PR to add this feature at #7829.
@bmw Any opinion about an ACME entry point to check if the certificate needs to be renewed? It could solve the problem of the OCSP cache and allow the renewals before the effective revocation.
Because of the reasons mentioned by Phil and because I believe it would require hardcoding some URLs that are not generalizable and could change in the future, I personally don't think we should bypass the cache in our code.
tdelmas> Any opinion about an ACME entry point to check if the certificate needs to be renewed? It could solve the problem of the OCSP cache and allow the renewals before the effective revocation.
phil> There is the possibility that sidestepping the cache and hitting our origin directly will cause massive service degradation.
I think you two are talking about different things. I believe tdelmas is talking about specifying, and implementing, a new request type that can be used to tell clients in advance of revocation that they need to renew. I think this is a great idea.
I think Phil is talking about making requests directly to our OCSP origins, which I think we are all in agreement is not a good idea.
I believe tdelmas is talking about specifying, and implementing, a new request type that can be used to tell clients in advance of revocation that they need to renew.
@jsha Yes, in advance (or not, during the cache period): I think the cost is inferior to an OCSP response. I'm too against the bypass of the OCSP cache. #7649 will reduce the problem but to fully avoid downtime, clever OCSP stapling or that API is needed in my opinion.
Activity
pde commentedon Jan 28, 2016
Suggestion: at revocation time, ask a question about deleting the renewal conf.
56 remaining items
[-]Revocation and the renewer[/-][+]Check OCSP as part of determining if the certificate is due for renewal[/+]tdelmas commentedon Mar 3, 2020
The time has come. https://community.letsencrypt.org/t/revoking-certain-certificates-on-march-4/114864/15
Chaz6 commentedon Mar 3, 2020
Please consider adding this soon!
tdelmas commentedon Mar 3, 2020
@bmw Any opinion about an ACME entry point to check if the certificate needs to be renewed? It could solve the problem of the OCSP cache and allow the renewals before the effective revocation.
pgporada commentedon Mar 3, 2020
There is the possibility that sidestepping the cache and hitting our origin directly will cause massive service degradation. The OCSP cache offload is ~90% - 95% of the traffic (depending on month) at our CDN which equates to hundreds of terabytes that don't hit our loadbalancers. There was an incident back in May of 2017 where the OCSP cache was purged and we had quite the painful incident.
tdelmas commentedon Mar 3, 2020
(sorry for the off-topic) Also, fetching OCSP for stapling may help: https://twitter.com/caddyserver/status/1234874273724084226 that way, when an OCSP response fetched says "revoked" there is still time to renew the cerficate until the previous OCSP response is expired, so no downtime!
bmw commentedon Mar 3, 2020
Yeah. I spent this morning doing more scrambling than I wish I would have had to, but I have a PR to add this feature at #7829.
Because of the reasons mentioned by Phil and because I believe it would require hardcoding some URLs that are not generalizable and could change in the future, I personally don't think we should bypass the cache in our code.
We could maybe provide code snippets on https://community.letsencrypt.org to help people here if people have ideas beyond what Let's Encrypt wrote at https://community.letsencrypt.org/t/revoking-certain-certificates-on-march-4/114864, but since changing Certbot code is often difficult because it gets entombed in various Linux distros, I personally don't think we should do anything dramatic or specific for this issue in Certbot itself.
Good idea! I think between my PR and #7649, we may have this pretty soon in Certbot as well at least for Apache users who enable OCSP prefetching.
jsha commentedon Mar 3, 2020
tdelmas> Any opinion about an ACME entry point to check if the certificate needs to be renewed? It could solve the problem of the OCSP cache and allow the renewals before the effective revocation.
phil> There is the possibility that sidestepping the cache and hitting our origin directly will cause massive service degradation.
I think you two are talking about different things. I believe tdelmas is talking about specifying, and implementing, a new request type that can be used to tell clients in advance of revocation that they need to renew. I think this is a great idea.
I think Phil is talking about making requests directly to our OCSP origins, which I think we are all in agreement is not a good idea.
tdelmas commentedon Mar 3, 2020
@jsha Yes, in advance (or not, during the cache period): I think the cost is inferior to an OCSP response. I'm too against the bypass of the OCSP cache. #7649 will reduce the problem but to fully avoid downtime, clever OCSP stapling or that API is needed in my opinion.
Check OCSP as part of determining if the certificate is due for renew…
up to date (#1)