Skip to content

Commit

Permalink
Merge pull request #6153 from inteon/fix_error_message
Browse files Browse the repository at this point in the history
ip address is missing from error message
  • Loading branch information
jetstack-bot committed Jun 20, 2023
2 parents 0383f81 + bdb685d commit cb96931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/pki/csr.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func GenerateCSR(crt *v1.Certificate, optFuncs ...GenerateCSROption) (*x509.Cert
}

if len(commonName) == 0 && len(dnsNames) == 0 && len(uriNames) == 0 && len(crt.Spec.EmailAddresses) == 0 && len(crt.Spec.IPAddresses) == 0 {
return nil, fmt.Errorf("no common name, DNS name, URI SAN, or Email SAN specified on certificate")
return nil, fmt.Errorf("no common name, DNS name, URI SAN, Email SAN or IP address specified on certificate")
}

pubKeyAlgo, sigAlgo, err := SignatureAlgorithm(crt)
Expand Down

0 comments on commit cb96931

Please sign in to comment.