Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -5316,7 +5316,7 @@ func initSelfSignedHTTPSCert(cfg *servicecfg.Config) (err error) {
proxyHost, _, err := net.SplitHostPort(addr.String())
if err != nil {
// log and skip error since this is a nice to have
cfg.Log.Errorf("Error parsing proxy.public_address %v, skipping adding to self-signed cert: %v", addr.String(), err)
cfg.Log.Warnf("Error parsing proxy.public_address %v, skipping adding to self-signed cert: %v", addr.String(), err)
continue
}
// If the address is a IP have it added as IP SAN
Expand Down
2 changes: 1 addition & 1 deletion lib/srv/db/access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,7 @@ func (c *testContext) createUserAndRole(ctx context.Context, t *testing.T, userN

// makeTLSConfig returns tls configuration for the test's tls listener.
func (c *testContext) makeTLSConfig(t *testing.T) *tls.Config {
creds, err := cert.GenerateSelfSignedCert([]string{"localhost"}, []string{})
creds, err := cert.GenerateSelfSignedCert([]string{"localhost"}, nil)
require.NoError(t, err)
cert, err := tls.X509KeyPair(creds.Cert, creds.PrivateKey)
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestHostUUIDRegenerateEmpty(t *testing.T) {
func TestSelfSignedCert(t *testing.T) {
t.Parallel()

creds, err := cert.GenerateSelfSignedCert([]string{"example.com"}, []string{})
creds, err := cert.GenerateSelfSignedCert([]string{"example.com"}, nil)
require.NoError(t, err)
require.NotNil(t, creds)
require.Equal(t, 4, len(creds.PublicKey)/100)
Expand Down