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

Traefik using default cert #24

Closed
sudo-kraken opened this issue Apr 29, 2020 · 10 comments
Closed

Traefik using default cert #24

sudo-kraken opened this issue Apr 29, 2020 · 10 comments

Comments

@sudo-kraken
Copy link

All of a sudden traefik isnt working when going to my top level domain i.e. example.com it gives a cert warning issue when you inspect the cert its common name is 'CN=TRAEFIK DEFAULT CERT' whereas all the subdomains which operate on the *.example.com are all fine and work through cloudflare. I have regenereated the acme json and it is still doing this. I dont understand why this is happening as it has been working until today.

@sudo-kraken
Copy link
Author

This is the traefik log for when you try to visit the domain, I have changed only the WAN IP and domain name for security reasons

today at 3:26 PM time="2020-04-29T14:26:14Z" level=debug msg="Serving default certificate for request: "example.com""
today at 3:26 PM time="2020-04-29T14:26:15Z" level=debug msg="http: TLS handshake error from x.x.x.x:59639: remote error: tls: bad certificate"

@g0Idfinger
Copy link

g0Idfinger commented Apr 29, 2020 via email

@sudo-kraken
Copy link
Author

Does your acme.json show both certificates? example.com and *.example.com

In my traefik 2 acme JSON at the bottom it states certificates: null

@g0Idfinger
Copy link

looks like you may need to delete the contents and regenerate it by uncommenting out

  • "traefik.http.routers.traefik-rtr.tls.certresolver=dns-cloudflare" and building the traefik container.

@sudo-kraken
Copy link
Author

That's what I did I have cycled it twice now the wildcards work but not the top level :(

@sudo-kraken
Copy link
Author

Does your traefik 2 acme have certs at the bottom

@g0Idfinger
Copy link

mine has this. which is after the private key.

"Certificates": [
  {
    "domain": {
      "main": "domain.com",
      "sans": [
        "*.domain.com"

@sudo-kraken
Copy link
Author

I have recreated the SSL as you said to and still nothing ?

@sudo-kraken
Copy link
Author

The only thing I can think of that has changed is that I created a new API key for cloudflare ddns but left the global key in the config? Can't see how that would break it though

@sudo-kraken
Copy link
Author

Fixed it by removing the image bloody hell this things buggy

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

2 participants