Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't generate www certificates with cloudflare #99

Open
cmmarslender opened this issue Oct 23, 2017 · 13 comments
Open

Can't generate www certificates with cloudflare #99

cmmarslender opened this issue Oct 23, 2017 · 13 comments

Comments

@cmmarslender
Copy link

Not sure if this is a problem with cloudflare, or just a more general problem. This used to work fine, and only recently stopped working.

Trying to issue a certificate for root domain and www.domain.com, and am getting errors over and over. Here is the log from the container:

10/23/2017 3:53:09 PMtime="2017-10-23T22:53:09Z" level=info msg="Using locally stored Let's Encrypt account for myemail@myemail.com"
10/23/2017 3:53:09 PMtime="2017-10-23T22:53:09Z" level=info msg="Using Let's Encrypt Production API"
10/23/2017 3:53:09 PMtime="2017-10-23T22:53:09Z" level=info msg="Trying to obtain SSL certificate (mysite.com,www.mysite.com) from Let's Encrypt Production CA"
10/23/2017 3:53:09 PMtime="2017-10-23T22:53:09Z" level=info msg="[INFO][mysite.com, www.mysite.com] acme: Obtaining bundled SAN certificate"
10/23/2017 3:53:09 PMtime="2017-10-23T22:53:09Z" level=info msg="[INFO][mysite.com] AuthURL: https://acme-v01.api.letsencrypt.org/acme/authz/<code>"
10/23/2017 3:53:09 PMtime="2017-10-23T22:53:09Z" level=info msg="[INFO][www.mysite.com] AuthURL: https://acme-v01.api.letsencrypt.org/acme/authz/<code>"
10/23/2017 3:53:09 PMtime="2017-10-23T22:53:09Z" level=info msg="[INFO][mysite.com] acme: Could not find solver for: tls-sni-01"
10/23/2017 3:53:09 PMtime="2017-10-23T22:53:09Z" level=info msg="[INFO][mysite.com] acme: Could not find solver for: http-01"
10/23/2017 3:53:09 PMtime="2017-10-23T22:53:09Z" level=info msg="[INFO][mysite.com] acme: Trying to solve DNS-01"
10/23/2017 3:53:12 PMtime="2017-10-23T22:53:12Z" level=info msg="[INFO][mysite.com] Checking DNS record propagation using [169.254.169.250:53]"
10/23/2017 3:53:16 PMtime="2017-10-23T22:53:16Z" level=info msg="[INFO][mysite.com] The server validated our request"
10/23/2017 3:53:17 PMtime="2017-10-23T22:53:17Z" level=info msg="[INFO][www.mysite.com] acme: Could not find solver for: http-01"
10/23/2017 3:53:17 PMtime="2017-10-23T22:53:17Z" level=info msg="[INFO][www.mysite.com] acme: Trying to solve DNS-01"
10/23/2017 3:53:17 PMtime="2017-10-23T22:53:17Z" level=error msg="[www.mysite.com] Error obtaining certificate: Error presenting token: Unexpected response code 'SERVFAIL' for www.mysite.com."```
@willseward
Copy link
Contributor

willseward commented Oct 24, 2017

I'm trying to figure this one out too... It looks like the TXT records never make it to the zone

@frankbohman
Copy link

Any news on this?

We have the exact same problem, wich occured when adding new subdomains to our list.

@clayrisser
Copy link

I'm experiencing the same problem

1 similar comment
@Thom-x
Copy link

Thom-x commented Dec 31, 2017

I'm experiencing the same problem

@clayrisser
Copy link

clayrisser commented Dec 31, 2017

Did you copy paste my response? lol

@kimaero
Copy link

kimaero commented Feb 26, 2018

I'm experiencing the same problem

@willseward
Copy link
Contributor

I think this problem is specific to Cloudflare (though it may not be Cloudflare's fault).

The issue seems to resolve itself when I toggle the cloud icon on the failing CNAME/A record.

@z3cka
Copy link

z3cka commented Mar 1, 2018

@willseward toggle from what state to what? I'm having the same problem.

@z3cka
Copy link

z3cka commented Mar 1, 2018

Is there a way to manually set the token to return via TXT record?

@kimaero
Copy link

kimaero commented Mar 1, 2018

I don't know if it helps, but in my case, I had a CNAME record that was pointing to the root domain. After I have changed it not to point root, but to point the same server as root – everything went just fine and did it smoothly.

@willseward
Copy link
Contributor

@z3cka I toggled it on for the certificate issuance, and then off because I don't require it.

@kimaero Yes, I had exactly the same situation. In my experience, it would transiently place the TXT records on the target of the CNAME instead of the correct domain. When I removed the CNAME it stopped happening, but started again soon after.

@z3cka
Copy link

z3cka commented Mar 2, 2018

Thanks for the response! I ended up using the HTTP method rather than the DNS based challenge and it worked like a charm.

Cheers!

@Panthro
Copy link

Panthro commented Apr 2, 2018

Same thing here, using Cloudflare had a CNAME with the subdmain I wanted www in that case pointing to the root, and I started getting this error.

Removed the subdomain CNAME and it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants