diff --git a/acmeclient.go b/acmeclient.go index 9add769..c6e1f6e 100644 --- a/acmeclient.go +++ b/acmeclient.go @@ -51,7 +51,7 @@ func (iss *ACMEIssuer) newACMEClientWithAccount(ctx context.Context, useTestCA, } // we try loading the account from storage before a potential - // lock, and 0after obtaining the lock as well, to ensure we don't + // lock, and after obtaining the lock as well, to ensure we don't // repeat work done by another instance or goroutine getAccount := func() (acme.Account, error) { // look up or create the ACME account diff --git a/zerosslissuer.go b/zerosslissuer.go index 8ee044b..4a33bfa 100644 --- a/zerosslissuer.go +++ b/zerosslissuer.go @@ -146,7 +146,7 @@ func (iss *ZeroSSLIssuer) Issue(ctx context.Context, csr *x509.CertificateReques // create the CNAME record(s) records := make(map[string]zoneRecord, len(cert.Validation.OtherMethods)) for name, verifyInfo := range cert.Validation.OtherMethods { - zr, err := iss.CNAMEValidation.createRecord(ctx, verifyInfo.CnameValidationP1, "CNAME", verifyInfo.CnameValidationP2) + zr, err := iss.CNAMEValidation.createRecord(ctx, verifyInfo.CnameValidationP1, "CNAME", verifyInfo.CnameValidationP2+".") // see issue #304 if err != nil { return nil, fmt.Errorf("creating CNAME record: %v", err) }