docker-pterodactyl icon indicating copy to clipboard operation
docker-pterodactyl copied to clipboard

Unable to obtain ACME certificate for domains

Open StanislasSiweck opened this issue 2 years ago • 8 comments

Hello, I have tried several methods to get my certifications back but none of them work, I am here to ask for help or to give me a direction. I am dear OVH for my domain, I changed the email in _base/data/traefik/traefik.toml by my email but it would say who to look for my certificate on my domain? Thank you for your help. image

StanislasSiweck avatar Jul 17 '22 14:07 StanislasSiweck

The email in treafik.toml has nothing to do with the setup. It's just a requirement in case if they need to send an email. But it doesn't affect the generation or the process of obtaining the certificate.

The error message you provided could be a cause of many different reasons. Could you provide your docker compose file?

EdyTheCow avatar Jul 17 '22 14:07 EdyTheCow

Treafik: image

I have not changed anything. I can add my information from my host (OVH) but I don't know what to put in KEY and value.

StanislasSiweck avatar Jul 17 '22 17:07 StanislasSiweck

Could you provide compose of your panel? Also, what do you mean by "KEY" and "value"?

EdyTheCow avatar Jul 17 '22 18:07 EdyTheCow

Docker-compose Panel: image

When I looked on the Traefik website, I found this; https://doc.traefik.io/traefik/v2.3/https/acme/#providers And I found this for my host OVH

I had added the key with the value but nothing changes.

StanislasSiweck avatar Jul 17 '22 18:07 StanislasSiweck

Ah, you're over complicating a bit. The default configuration on this repo uses let's encrypt which doesn't care what kind of host or domain provider you use. With default configuration you only need to point your panel domain to the IP address of the server panel is hosted on.

The configuration you're referring to for OVH is used as a challenge to generate the certificate. You can achieve the same result by simply using let's encrypt which is what this repo uses by default.

EdyTheCow avatar Jul 17 '22 18:07 EdyTheCow

Okay fine, but then why can't it find? I opened port 80 and 443, I installed a wordpress (that I uninstalled after) for test and with it everything was good.

StanislasSiweck avatar Jul 17 '22 18:07 StanislasSiweck

Did the WordPress you installed ran under Traefik? Are you running default configuration from repo or have you added / removed Traefik labels or anything else in Traefik.toml? Does the acme.json exist? If so does it have correct permissions set?

EdyTheCow avatar Jul 17 '22 19:07 EdyTheCow

I had launched wordpress on another VM, I just tested on the same VM with the labels. I can't access it (config problem) but I have the certificate in acme.json. I don't really understand it. Yes, it has permission and I don't use anything more than what is given in the project. (except the docker-compose that I created to test the worldpress)

Wordpress: image

StanislasSiweck avatar Jul 17 '22 19:07 StanislasSiweck