aboutsummaryrefslogtreecommitdiff
path: root/x509.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-11-04 12:17:59 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-11-04 12:17:59 +0100
commit0e2d1423e8863279d187429ee4fb80b371816d42 (patch)
tree485e4cd22c88ddb3d15fb3954c702e8a3b42c8cc /x509.go
parente7d80645f5f3795183ff6062a6529ea226d8ef47 (diff)
allowed configuration of max-range and max-chain
Diffstat (limited to 'x509.go')
-rw-r--r--x509.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/x509.go b/x509.go
index 014344d..16cc8c6 100644
--- a/x509.go
+++ b/x509.go
@@ -170,9 +170,9 @@ func buildChainFromB64List(lp *LogParameters, b64chain []string) ([]*x509.Certif
}
opts := x509.VerifyOptions{
- Roots: lp.AnchorPool,
+ Roots: lp.AnchorPool,
Intermediates: intermediatePool,
- KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageAny}, // TODO: move to ld
+ KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageAny}, // TODO: move to ld
}
chains, err := certificate.Verify(opts)