Skip to content

Commit

Permalink
Fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hslatman committed Mar 4, 2024
1 parent d392c16 commit 2a47644
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/requestid_test.go
Expand Up @@ -248,7 +248,7 @@ func generateOTT(t *testing.T, jwk *jose.JSONWebKey, subject string) string {
return raw
}

func newAuthorizingServer(t *testing.T, ca *minica.CA) *httptest.Server {
func newAuthorizingServer(t *testing.T, mca *minica.CA) *httptest.Server {
t.Helper()

key, err := keyutil.GenerateDefaultSigner()
Expand All @@ -257,7 +257,7 @@ func newAuthorizingServer(t *testing.T, ca *minica.CA) *httptest.Server {
csr, err := x509util.CreateCertificateRequest("127.0.0.1", []string{"127.0.0.1"}, key)
require.NoError(t, err)

crt, err := ca.SignCSR(csr)
crt, err := mca.SignCSR(csr)
require.NoError(t, err)

srv := httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
Expand All @@ -270,12 +270,12 @@ func newAuthorizingServer(t *testing.T, ca *minica.CA) *httptest.Server {
w.WriteHeader(http.StatusBadRequest)
}))
trustedRoots := x509.NewCertPool()
trustedRoots.AddCert(ca.Root)
trustedRoots.AddCert(mca.Root)

srv.TLS = &tls.Config{
Certificates: []tls.Certificate{
{
Certificate: [][]byte{crt.Raw, ca.Intermediate.Raw},
Certificate: [][]byte{crt.Raw, mca.Intermediate.Raw},
PrivateKey: key,
Leaf: crt,
},
Expand Down

0 comments on commit 2a47644

Please sign in to comment.