• Adam Langley's avatar
    crypto/x509: check EKUs like 1.9. · 7d61ad25
    Adam Langley authored
    This change brings back the EKU checking from 1.9. In 1.10, we checked
    EKU nesting independent of the requested EKUs so that, after verifying a
    certifciate, one could inspect the EKUs in the leaf and trust them.
    
    That, however, was too optimistic. I had misunderstood that the PKI was
    /currently/ clean enough to require that, rather than it being
    desirable. Go generally does not push the envelope on these sorts of
    things and lets the browsers clear the path first.
    
    Fixes #24590
    
    Change-Id: I18c070478e3bbb6468800ae461c207af9e954949
    Reviewed-on: https://go-review.googlesource.com/113475Reviewed-by: 's avatarFilippo Valsorda <filippo@golang.org>
    7d61ad25
verify.go 30 KB