Skip to content

Commit 16c9db1

Browse files
committed
zerossl: Make CNAME target absolute (fix #304)
1 parent 1ff1ad8 commit 16c9db1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

acmeclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (iss *ACMEIssuer) newACMEClientWithAccount(ctx context.Context, useTestCA,
5151
}
5252

5353
// we try loading the account from storage before a potential
54-
// lock, and 0after obtaining the lock as well, to ensure we don't
54+
// lock, and after obtaining the lock as well, to ensure we don't
5555
// repeat work done by another instance or goroutine
5656
getAccount := func() (acme.Account, error) {
5757
// look up or create the ACME account

zerosslissuer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (iss *ZeroSSLIssuer) Issue(ctx context.Context, csr *x509.CertificateReques
146146
// create the CNAME record(s)
147147
records := make(map[string]zoneRecord, len(cert.Validation.OtherMethods))
148148
for name, verifyInfo := range cert.Validation.OtherMethods {
149-
zr, err := iss.CNAMEValidation.createRecord(ctx, verifyInfo.CnameValidationP1, "CNAME", verifyInfo.CnameValidationP2)
149+
zr, err := iss.CNAMEValidation.createRecord(ctx, verifyInfo.CnameValidationP1, "CNAME", verifyInfo.CnameValidationP2+".") // see issue #304
150150
if err != nil {
151151
return nil, fmt.Errorf("creating CNAME record: %v", err)
152152
}

0 commit comments

Comments
 (0)