diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-04 12:51:27 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-04 12:51:27 +0100 |
commit | 85a8733284337756df4c8a04a816aa2bfb5a847f (patch) | |
tree | 7e9c2f7c19c998eeccfc8e713102acb598319508 /x509.go | |
parent | 0e2d1423e8863279d187429ee4fb80b371816d42 (diff) |
moved extended key usage to log parameters
Diffstat (limited to 'x509.go')
-rw-r--r-- | x509.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -172,7 +172,7 @@ func buildChainFromB64List(lp *LogParameters, b64chain []string) ([]*x509.Certif opts := x509.VerifyOptions{ Roots: lp.AnchorPool, Intermediates: intermediatePool, - KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageAny}, // TODO: move to ld + KeyUsages: lp.KeyUsage, // no extended key usage passes by default } chains, err := certificate.Verify(opts) |