mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Fix typo in invalid cert name error message (#565)
BUG: validateCertificateList error message has valid spelled wrong.
This commit is contained in:
@@ -207,7 +207,7 @@ func validateCertificateList(certs []*acme.CertConfig, cfg *models.DNSConfig) er
|
|||||||
for _, cert := range certs {
|
for _, cert := range certs {
|
||||||
name := cert.CertName
|
name := cert.CertName
|
||||||
if !validCertNamesRegex.MatchString(name) {
|
if !validCertNamesRegex.MatchString(name) {
|
||||||
return fmt.Errorf("'%s' is not a valud certificate name. Only alphanumerics, - and _ allowed", name)
|
return fmt.Errorf("'%s' is not a valid certificate name. Only alphanumerics, - and _ allowed", name)
|
||||||
}
|
}
|
||||||
sans := cert.Names
|
sans := cert.Names
|
||||||
if len(sans) > 100 {
|
if len(sans) > 100 {
|
||||||
|
Reference in New Issue
Block a user