Closed Bug 390530 Opened 18 years ago Closed 17 years ago

libpkix does not support time override

Categories

(NSS :: Libraries, enhancement, P1)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alvolkov.bgs, Assigned: alvolkov.bgs)

Details

(Whiteboard: PKIX NSS312B2)

Attachments

(1 file)

old nss code support validity time override for certs that have been validating for certificateUsageSSLServer and certificateUsageSSLServerWithStepUp usages libpkix does not support this feature.
Priority: -- → P2
Whiteboard: PKIX
IIRC, there is a bit defined in the CERTCertificate that means "the invalid date for this cert is overridden". It should be easy to test for that, at least in the PKIX_PL_ layer.
Blocks: 390888
P1, we cannot release the CERT_VerifyCert* "wrappers" until this is fixed.
Priority: P2 → P1
Version: 3.12 → trunk
The following code should be added into pkix_pl_cert.c:PKIX_PL_Cert_CheckValidity before checking for cert time validity. allowOverride = (PRBool)((requiredUsages & certificateUsageSSLServer) || (requiredUsages & certificateUsageSSLServerWithStepUp)); val = CERT_CheckCertValidTimes(cert->nssCert, timeToCheck, allowOverride);
No longer blocks: 390888
Whiteboard: PKIX → PKIX NSS312B2
Attached patch Patch v1Splinter Review
Allow time override for certificateUsageSSLServer and certificateUsageSSLServerWithStepUp usages
Attachment #312740 - Flags: review?(nelson)
Comment on attachment 312740 [details] [diff] [review] Patch v1 So simple! r=nelson
Attachment #312740 - Flags: review?(nelson) → review+
Integrated.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: