We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c459911 commit d1f0d16Copy full SHA for d1f0d16
internal/certs/validation-expiration.go
@@ -706,7 +706,7 @@ func (evr ExpirationValidationResult) Status() string {
706
707
// but if it is, use the first SubjectAlternateName field in its place
708
if nextCertToExpire.Subject.CommonName == "" {
709
- if len(nextCertToExpire.DNSNames[0]) > 0 {
+ if len(nextCertToExpire.DNSNames) > 0 {
710
nextCertToExpireServerName = nextCertToExpire.DNSNames[0]
711
}
712
0 commit comments