Skip to content

Commit

Permalink
test-suites/pathbuilding: add EKU to EE certs
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw authored and JackOfMostTrades committed Dec 1, 2023
1 parent 7161932 commit 859af10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test-suites/pathbuilding/generate_certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"crypto/x509"
"crypto/x509/pkix"
"fmt"

"github.com/Netflix/bettertls/test-suites/certutil"
)

Expand Down Expand Up @@ -51,6 +52,7 @@ func GenerateCerts(rootCa *x509.Certificate, rootKey crypto.Signer, leafDnsName
SerialNumber: certutil.RandomString(),
}
template.DNSNames = []string{leafDnsName}
template.ExtKeyUsage = []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}
}

if isInvalid {
Expand Down

0 comments on commit 859af10

Please sign in to comment.