Skip to content
Snippets Groups Projects
Commit 660d5360 authored by ale's avatar ale
Browse files

Add terminating dot to FQDN

parent af5c24c6
No related branches found
No related tags found
No related merge requests found
Pipeline #67213 passed
...@@ -88,7 +88,8 @@ func (d *dnsValidator) client() *dns.Client { ...@@ -88,7 +88,8 @@ func (d *dnsValidator) client() *dns.Client {
func (d *dnsValidator) Fulfill(ctx context.Context, client *acme.Client, domain string, chal *acme.Challenge) (func(), error) { func (d *dnsValidator) Fulfill(ctx context.Context, client *acme.Client, domain string, chal *acme.Challenge) (func(), error) {
zone := domain[strings.Index(domain, ".")+1:] zone := domain[strings.Index(domain, ".")+1:]
fqdn := dns.Fqdn(domain) // Add terminating dot to the FQDN.
fqdn := dns.Fqdn(domain) + "."
value, err := client.DNS01ChallengeRecord(chal.Token) value, err := client.DNS01ChallengeRecord(chal.Token)
if err != nil { if err != nil {
return nil, err return nil, err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment