diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-04 12:17:59 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-04 12:17:59 +0100 |
commit | 0e2d1423e8863279d187429ee4fb80b371816d42 (patch) | |
tree | 485e4cd22c88ddb3d15fb3954c702e8a3b42c8cc /x509.go | |
parent | e7d80645f5f3795183ff6062a6529ea226d8ef47 (diff) |
allowed configuration of max-range and max-chain
Diffstat (limited to 'x509.go')
-rw-r--r-- | x509.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |