1
0
Fork 0

Allow SANs for wildcards domain.

This commit is contained in:
Wenxuan Zhao 2019-05-03 09:08:37 -07:00 committed by Traefiker Bot
parent 77b1933833
commit 1f2fe08c33
2 changed files with 4 additions and 10 deletions

View file

@ -243,12 +243,12 @@ func TestGetValidDomain(t *testing.T) {
expectedDomains: []string{"*.traefik.wtf", "traefik.wtf"},
},
{
desc: "unexpected SANs",
desc: "wildcard SANs",
domains: types.Domain{Main: "*.traefik.wtf", SANs: []string{"*.acme.wtf"}},
dnsChallenge: &DNSChallenge{},
wildcardAllowed: true,
expectedErr: "unable to generate a certificate in ACME provider for domains \"*.traefik.wtf,*.acme.wtf\": SAN \"*.acme.wtf\" can not be a wildcard domain",
expectedDomains: nil,
expectedErr: "",
expectedDomains: []string{"*.traefik.wtf", "*.acme.wtf"},
},
}