- changed status to resolved
Change letsencrypt challenge to https
Hi,
to use the TLS letsencrypt feature, a challenge in http://{host} is sent to letsencrypt. In my setup, i have a nginx reverse proxy in front of the mailserver.
So all http request will be redirected to https. Is it possible to change the initial challenge from http to https ?
Thanks
Comments (4)
-
repo owner -
reporter I have done this ... The problem is the offload nginx in front of the mailserver redirects all to https
so this one
http://{host}/.well-known/acme-challenge/
is redirected to
https://{host}/.well-known/acme-challenge/
which is not available
-
repo owner You need to change settings of nginx in front of mailserver to not redirect, acme challenge http-01 requires token be accessible through HTTP...
-
reporter Ok thanks i try to find out how ... Thought there is an option in Letsencrypt to change the challenge to https
Thanks Ronny
- Log in to comment
Are you using ngnix-proxy container? You should set HTTPS=OFF
Please see working example https://gist.github.com/analogic/51fbe91b580d7913b72320f89bf994cc#file-docker-compose-yml
Reopen if you want to