Closed Bug 970810 Opened 11 years ago Closed 11 years ago

Modify name constraints tests to test insanity::pkix

Categories

(Core :: Security: PSM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30
Tracking Status
firefox29 --- fixed

People

(Reporter: briansmith, Assigned: briansmith)

References

Details

Attachments

(1 file)

We need to modify test_name_constraints.js to test insanity::pkix as well as the classic certificate verification. This requires us to change how we decide which error code to return from insanity::pkix. That requires the refactoring in bug 915931.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Camilo decided not to modify the name constraint tests to add insanity::pkix support in bug 900727, so we need to reopen this.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
I had to modify generate.py to remove the extra EKUs (in particular, Object Signing). I also added explicitly-documented cases for the special handling of EKU. Even though those tests are technically redundant, it is useful to call them out separately. I looked at the classic NSS code: PRBool getSubjectCN = (!count && certUsage == certUsageSSLServer); subjectNameList = CERT_GetConstrainedCertificateNames(subjectCert, arena, getSubjectCN); That is the same logic that insanity::pkix uses, EXCEPT for the counting of sub-CA certificates is slightly different.
Attachment #8376786 - Flags: review?(cviecco)
Comment on attachment 8376786 [details] [diff] [review] name-constraints-tests-insanity.patch Review of attachment 8376786 [details] [diff] [review]: ----------------------------------------------------------------- r+ assuming this actually passes the tests. I tried to do the insanity switch on 900727 but I was not getting namespace errors when using insanity but unknown issuer.
Attachment #8376786 - Flags: review?(cviecco) → review+
(In reply to Camilo Viecco (:cviecco) from comment #4) > r+ assuming this actually passes the tests. I tried to do the insanity > switch on 900727 but I was not getting namespace errors when using insanity > but unknown issuer. Yes, that's because you were missing the patch in bug 973268, which this bug depends on. Also, I see I forgot to attach the patch to bug 973268. Will do that later today.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: