-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
letencrypt disabled tls-sni-01 challenge. registry image doesn't support fallback challenges. #2545
Comments
any progress on this task? |
Yes, any progress please ? |
Is there a workaround? |
I was able to get a stable workaround running by using Traefik as a reverse proxy. It handles all of my Let's Encrypt SSL automatically for the "front end". It then passes the web traffic to my registry that is running a self-signed certificate. Since I have both containers running on the same docker private network, that works great for me and the user does not get any SSL validation errors. After getting that all set up, I realized that all registry users could push and pull images to the registry. Since that could be a huge security issue, I attempted to configure "Portus" to run along with my registry for managing access. After that attempt crashed and burned, I finally settled on cesanta/docker_auth which was not too bad to configure. This allows me to set roles and access permissions on a per user/device basis. Using these methods, I now have a private docker registry that is automatically secured with Let's Encrypt. Best of all, it is backed by Amazon S3 as well so I can destroy and re-create the container and not have to worry about losing any images. Sorry for the lengthy post, but thought I would share my experiences incase it helped anyone else out. It sure did take a while to figure that all out 😀 |
Thanks Jay, I am now manually doing the letsencrypt certificate generation and renewal. 🙈 |
Find workaround by using Nginx-Proxy as Reverse Proxy with Let's Encrypt companion container. Companion container allows the creation or renewal of Let's Encrypt certificates automatically. |
Awesome @ASHWINI-GUPTA! That should work too. Just reporting back that since my original post, the Traefik container for front end has been working perfectly. No issues since set up as well. |
Just as a heads up, Let's Encrypt now supports the TLS-ALPN-01 challenge type, which once again requires only port 443 to work. Implementations seem to be pretty rare at the moment though. https://letsencrypt.org/docs/challenge-types/ |
@milosgajdos Is this still something that is wanted for v3, or would it be possible to not have this block the v3 release? |
In the past a few folks asked about this hence why this is in the v3 milestone. |
I think #3943 might be related or actually solve this issue. |
Yes, it works with current letsencrypt and other modern acme servers |
@steve-taylor I believe these two merges addressed the woes on the
Do you mind verifying and/or closing? |
@milosgajdos Do you think this can be closed and re-opened if the issue reoccurs? Given the age of this issue I think that might be best and would remove this from the v3 milestone list. |
Agreed, closing. If the issue hasnt been fixed @steve-taylor, feel free to reopen. |
This
produces this (in the logs)
This is caused by letsencrypt disabling the
tls-sni-01
challenge which uses port 443. It falls back to thehttp-01
challenge which uses port 80, and thedns-01
challenge which uses port 53, but the registry accepts connections on only one port.More information here: https://community.letsencrypt.org/t/2018-01-11-update-regarding-acme-tls-sni-and-shared-hosting-infrastructure/50188.
Essentially, this means the bundled letsencrypt support is completely useless now. It should either be completely removed from
registry
or supporthttp-01
needs to be added.The text was updated successfully, but these errors were encountered: