Skip to content

Commit

Permalink
Only generate a certificate if an existing in memory certificate isn'…
Browse files Browse the repository at this point in the history
…t set

Signed-off-by: David Negstad <David.Negstad@microsoft.com>
  • Loading branch information
danegsta committed Mar 21, 2024
1 parent 3f611d9 commit dfabe8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/options/serving.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (s *SecureServingOptions) MaybeDefaultWithSelfSignedCerts(publicAddress str
}
}

if !canReadCertAndKey {
if !canReadCertAndKey && s.ServerCert.GeneratedCert == nil {
// add either the bind address or localhost to the valid alternates
if s.BindAddress.IsUnspecified() {
alternateDNS = append(alternateDNS, "localhost")
Expand Down

0 comments on commit dfabe8a

Please sign in to comment.