• Adam Langley's avatar
    crypto/x509: relax EKU checking in some cases. · 2f1de159
    Adam Langley authored
    CL 71030 enforced EKU nesting at verification time, to go along with the
    change in name constraints behaviour. From scanning the Certificate
    Transparency logs, it's clear that some CAs are not getting EKU nesting
    correct.
    
    This change relaxes the EKU rules in a few ways:
      ∙ EKUs in roots are no longer checked.
      ∙ Any CA certificate may issue OCSP responder certificates.
      ∙ The ServerAuth and SGC EKUs are treated as a single EKU when
        checking nesting.
      ∙ ServerAuth in a CA can now authorise ClientAuth.
      ∙ The generic CodeSigning EKU can now authorise two, Microsoft-specific
        code-signing EKUs.
    
    Change-Id: I7b7ac787709af0dcd177fe419ec2e485b8d85540
    Reviewed-on: https://go-review.googlesource.com/77330Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    2f1de159
Name
Last commit
Last update
..
pkix Loading commit data...
testdata Loading commit data...
cert_pool.go Loading commit data...
example_test.go Loading commit data...
name_constraints_test.go Loading commit data...
pem_decrypt.go Loading commit data...
pem_decrypt_test.go Loading commit data...
pkcs1.go Loading commit data...
pkcs8.go Loading commit data...
pkcs8_test.go Loading commit data...
root.go Loading commit data...
root_bsd.go Loading commit data...
root_cgo_darwin.go Loading commit data...
root_darwin.go Loading commit data...
root_darwin_arm_gen.go Loading commit data...
root_darwin_armx.go Loading commit data...
root_darwin_test.go Loading commit data...
root_linux.go Loading commit data...
root_nacl.go Loading commit data...
root_nocgo_darwin.go Loading commit data...
root_plan9.go Loading commit data...
root_solaris.go Loading commit data...
root_unix.go Loading commit data...
root_unix_test.go Loading commit data...
root_windows.go Loading commit data...
sec1.go Loading commit data...
sec1_test.go Loading commit data...
sha2_windows_test.go Loading commit data...
test-file.crt Loading commit data...
verify.go Loading commit data...
verify_test.go Loading commit data...
x509.go Loading commit data...
x509_test.go Loading commit data...
x509_test_import.go Loading commit data...