[OCSP-1] OCSP responder certificate expires after 1 year and is never renewed #64
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra#64
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
The delegated OCSP responder certificate is created once, at first boot, with a one-year validity (
lib/mdid_ws/cert_management/issuer_manager.ex:206,set_validity_period(:now, {1, :year})).MdidWs.Application.ensure_issuers/0only generates it when it is missing. Nothing checks its expiry and no code regenerates it.OcspRespondersigns every answer with whatever responder certificate is stored.Impact
About a year after the first boot, OCSP responses are signed by an expired responder certificate. Relying parties that validate the responder certificate reject the responses, or treat the certificate status as unknown. Revocation checking silently stops working for every certificate this service issued.
Fix
Notes
Found during review of the architecture docs (docs/architecture-current.md, section 5.5). Independent of the emCA work: the local CA and OCSP stay as they are.