forked from TrueCloudLab/certificates
Simplify trimming *. prefix of domain in acme dns validation.
This commit is contained in:
parent
37d33968f1
commit
967e86a48b
1 changed files with 1 additions and 4 deletions
|
@ -389,10 +389,7 @@ func (dc *dns01Challenge) validate(db nosql.DB, jwk *jose.JSONWebKey, vo validat
|
|||
// This is done to avoid making TXT lookups for domains like
|
||||
// _acme-challenge.*.example.com
|
||||
// Instead perform txt lookup for _acme-challenge.example.com
|
||||
domain := dc.Value
|
||||
if strings.HasPrefix(domain, "*") {
|
||||
domain = strings.TrimPrefix(domain, "*.")
|
||||
}
|
||||
domain := strings.TrimPrefix(dc.Value, "*.")
|
||||
|
||||
txtRecords, err := vo.lookupTxt("_acme-challenge." + domain)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue