Skip to content
Open
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
6 changes: 5 additions & 1 deletion depot/containerstore/credmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,12 @@ func createCertificateTemplate(guid string, certSAN certificateSAN, notBefore, n
} else {
ipaddr = []net.IP{net.ParseIP(certSAN.IPAddress)}
}
dnsNames := []string{guid}
var dnsNames []string
if guid != "" {
dnsNames = append(dnsNames, guid)
}
for _, route := range certSAN.InternalRoutes {

dnsNames = append(dnsNames, route.Hostname)
}

Expand Down