You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
502 B

package acme
import "testing"
func TestWildcard(t *testing.T) {
d := "*." + randString() + ".com"
account, order, _ := makeOrderFinalised(t, []string{ChallengeTypeDNS01}, Identifier{Type: "dns", Value: d})
certs, err := testClient.FetchCertificates(account, order.Certificate)
if err != nil {
t.Fatalf("error fetch cert: %v", err)
}
if len(certs) == 0 {
t.Fatal("no certs")
}
if err := certs[0].VerifyHostname(d); err != nil {
t.Fatalf("error verifying hostname %s: %v", d, err)
}
}