aboutsummaryrefslogtreecommitdiff
path: root/x509.go
diff options
context:
space:
mode:
Diffstat (limited to 'x509.go')
-rw-r--r--x509.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/x509.go b/x509.go
index 16cc8c6..e0fa3bc 100644
--- a/x509.go
+++ b/x509.go
@@ -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)