Commit 3bdfaf7a authored by Darren Shepherd's avatar Darren Shepherd

Cache loopback cert in the certs dir if set

parent a30c14b0
...@@ -51,7 +51,7 @@ func (s *SecureServingOptionsWithLoopback) ApplyTo(secureServingInfo **server.Se ...@@ -51,7 +51,7 @@ func (s *SecureServingOptionsWithLoopback) ApplyTo(secureServingInfo **server.Se
// create self-signed cert+key with the fake server.LoopbackClientServerNameOverride and // create self-signed cert+key with the fake server.LoopbackClientServerNameOverride and
// let the server return it when the loopback client connects. // let the server return it when the loopback client connects.
certPem, keyPem, err := certutil.GenerateSelfSignedCertKey(server.LoopbackClientServerNameOverride, nil, nil) certPem, keyPem, err := certutil.GenerateSelfSignedCertKeyWithFixtures(server.LoopbackClientServerNameOverride, nil, nil, s.SecureServingOptions.ServerCert.CertDirectory)
if err != nil { if err != nil {
return fmt.Errorf("failed to generate self-signed certificate for loopback connection: %v", err) return fmt.Errorf("failed to generate self-signed certificate for loopback connection: %v", err)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment