From 0e2d1423e8863279d187429ee4fb80b371816d42 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Wed, 4 Nov 2020 12:17:59 +0100 Subject: allowed configuration of max-range and max-chain --- x509.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x509.go') 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) -- cgit v1.2.3