This commit is contained in:
Jeroen Bobbeldijk
2017-07-19 21:33:58 +02:00
parent e36ea4269a
commit a0393425ce
3 changed files with 57 additions and 47 deletions

View File

@@ -106,6 +106,8 @@ func main() {
certificate_pool.AppendCertsFromPEM(chain_data)
certificate_chains, err = cert.Verify(x509.VerifyOptions{
Intermediates: certificate_pool,
CurrentTime: cert.NotBefore,
KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageAny},
})
if err != nil {
log.Fatal(err)