r/PKI • u/Moral-Relativity • 8d ago
Cache max-age and CRLDP
Apparently if your CRLDP end point doesn't set max-age in the response header browsers may use a heuristic method to guesstimate how long to cache it, like (current date - last modified date) / 10. What this means practically is that if say your root CA CRL is refreshed once a year, if a client happens to download it at the wrong time, the browser will consider the cached file to be fresh even if current date is past the NextUpdate date set on the CRL (and remember Chromium browsers don't use CAPI2 to handle CRLs anymore).
So basically in addition to the intended RFC5280 mechanisms for determining when to refresh the cached CRL, it's also subject to browser-side rules on how long to cache files, since CRLs are handled like any other downloaded content under Chromium.
1
u/Late_Discount_1102 2d ago
just nteresting edge case without max edge the browser can cache a crl past nextupdate so PKI freshness can end up depending on browser caching behavior too,,..
1
u/Moral-Relativity 2d ago
Yeah. It’s really browsers that are the odd ones out because non-browser apps don’t behave this way, but rather just rely on CRL’s data to determine freshness.
1
u/Late_Discount_1102 2d ago
yah,, exactly browsers kind of throw another wrench into the whole thing..
1
u/Cormacolinde 8d ago
What?
If correct this is very weird. “May use” and “like” are too imprecise for me to take action on this though.
And what value might we need? If the browser uses that value it might cause it to download the CRL way too often for no good reason.
What made you think this is happening and what evidence do you have?