1
0
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:
wsuff
2019-11-22 08:30:57 -05:00
committed by Tom Limoncelli
parent af4f2464e2
commit b928e7c22f

View File

@@ -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 {