Skip to content
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

Nextupdate field in a clone CA's OCSP response does not update to newer values #5015

Open
jmisset-cb opened this issue Mar 24, 2025 · 0 comments

Comments

@jmisset-cb
Copy link
Contributor

jmisset-cb commented Mar 24, 2025

Summary:
The nextUpdate field in the OCSP Response is based on the nextUpdate field of the MasterCRL cache.
Whenever a new CRL is generated the nextUpdate field is updated in the MasterCRL cache.
In the Master CA OCSP response, the nextUpdate field is updated correctly to show the latest nextUpdate value.
In the Clone CA OCSP response, the nextUpdate field is never updated, eventually resulting in an invalid OCSP response because the nextUpdate field is in the past.

For clarity, this issue affects the CA subsystem. I have not looked into the OCSP subsystem.

For example:
This Update: Mar 22 09:54:08 2025 GMT
Next Update: Mar 22 09:44:00 2025 GMT

Build:
idm-pki-ca-11.5.1-1.el9.noarch, AlmaLinux 9

Steps to reproduce:
Install pki-ca on a master and a clone instance
Spawn master CA instance and then spawn a clone CA instance, using default settings.

Configure the following settings on Master and Clone:
ca.crl.MasterCRL.cacheUpdateInterval=15
ca.crl.MasterCRL.enableCRLCache=true
ca.crl.MasterCRL.enableCacheRecovery=true
ca.crl.MasterCRL.enableCacheTesting=false
ca.crl.MasterCRL.autoUpdateInterval=5
ca.crl.MasterCRL.enableUpdateInterval=true
ca.crl.MasterCRL.minUpdateInterval=0
ca.ocspUseCache=true

And restart the CA instances.

Wait 5 minutes, then do an OCSP check on the Clone CA.

Expected result:
OCSP response with:
thisUpdate = now
nextUpdate = anywhere between now and 5 minutes in the future.

Actual result:
OCSP response with:
thisUpdate = now
nextUpdate = timestamp in the past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant