• Adam Langley's avatar
    crypto/x509: add test for v1 intermediates. · e56be943
    Adam Langley authored
    X.509v1 certificates are ancient and should be dead. (They are even
    prohibited by the Baseline requirements, section 7.1.1.)
    
    However, there are a number of v1 roots from the 1990's that are still
    in operation. Thus crypto/x509.Certificate.CheckSignatureFrom allows
    X.509v1 certificates to sign other certificates.
    
    The chain building code, however, only allows v1 certificates to sign
    others if they're a root. This change adds a test to check that.
    
    Change-Id: Ib8d81e522f30d41932b89bdf3b19ef3782d8ec12
    Reviewed-on: https://go-review.googlesource.com/34383
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    e56be943
Name
Last commit
Last update
..
pkix Loading commit data...
cert_pool.go Loading commit data...
example_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_windows.go Loading commit data...
sec1.go Loading commit data...
sec1_test.go Loading commit data...
sha2_windows_test.go 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...