Closed Bug 1615438 Opened 6 years ago Closed 5 years ago

Certificate validation should respect CKA_NSS_SERVER_DISTRUST_AFTER

Categories

(Core :: Security: PSM, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: jcj, Assigned: beurdouche)

References

(Depends on 1 open bug)

Details

(Whiteboard: [psm-assigned])

Attachments

(1 file)

Since Bug 1465613, NSS provides CKA_NSS_SERVER_DISTRUST_AFTER as a date to be compared with certificates' NotBefore dates to indicate distrust.

As just a straw-person idea, NSSCertDBTrustDomain::IsChainValid would return invalid if the root certificate was builtin, and if the end entity NotBefore date was after the root's CKA_NSS_SERVER_DISTRUST_AFTER date.

Blocks: 1615687
Priority: -- → P2
Whiteboard: [psm-backlog]
Blocks: 1618404
Blocks: 1621159
Assignee: nobody → bbeurdouche
Priority: P2 → P1
Whiteboard: [psm-backlog] → [psm-assigned]
Flags: needinfo?(bbeurdouche)
Status: NEW → ASSIGNED
Flags: needinfo?(bbeurdouche)

Should I create a new error value for this or do we think reusing ERROR_ADDITIONAL_POLICY_CONSTRAINT_FAILED is ok ?

Flags: needinfo?(dkeeler)

To me it feels more like the active distrust records from the built-in root module, so I think we should use Result::ERROR_UNTRUSTED_CERT (which would turn into Result::ERROR_UNTRUSTED_ISSUER when that result gets processed).

Flags: needinfo?(dkeeler)
Blocks: 1634584
Attachment #9147269 - Attachment description: Bug 1615438 - Use CKA_NSS_SERVER_DISTRUST_AFTER from NSS for certificate validation. → Bug 1615438 - Use CKA_NSS_SERVER_DISTRUST_AFTER from NSS for certificate validation. r=keeler
Pushed by cbrindusan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/adb3e4385840 Use CKA_NSS_SERVER_DISTRUST_AFTER from NSS for certificate validation. r=keeler
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: