From 21b0d3c3a290c4894f480f3a8a9f9eff0d3bfcb4 Mon Sep 17 00:00:00 2001 From: johnabass Date: Fri, 22 Nov 2024 17:01:53 -0800 Subject: [PATCH] accept any key usages --- token/claimBuilder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/token/claimBuilder.go b/token/claimBuilder.go index d872caf..327f76b 100644 --- a/token/claimBuilder.go +++ b/token/claimBuilder.go @@ -237,6 +237,7 @@ func (cb *clientCertificateClaimBuilder) AddClaims(_ context.Context, r *Request CurrentTime: pc.NotAfter.Add(-time.Second), Roots: cb.roots, Intermediates: cb.intermediates, + KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageAny}, } _, verifyErr := pc.Verify(vo)