-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add explicit :verify_none for httpc
#12485
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
Conversation
|
OTP 25 includes the system certificates as part of their distribution, so maybe we should use that instead? |
|
Thought about that too, but doesn't Elixir 1.15 have OTP 24 as lowest compatible version? Or should we add a |
|
A little off-topic, but running |
Let's do this.
I will investigate. |
|
@moogle19 isolated here: erlang/otp#7040 |
|
What should happen if the system has no certificates?
Should we let it fail or also use |
|
@moogle19 let's emit a warning and fallback to verify none! |
|
Wrong button, sorry! |
|
Hi @moogle19, please let me know if you want to do further refinements or if we should do it. My plan is to release a new v1.14 soon that works on 26 RC for those who want to try it out. :) |
|
@josevalim |
|
No need to be sorry, your contributions are very appreciated. :) |
|
💚 💙 💜 💛 ❤️ |
|
Hello! This is not enough. If you are going to verify the peer certificate, you also need to set the |
|
Alternatively there is an |
|
@lhoguin thank you, i will investigate. ❤️ |
|
@josevalim Would you like me to open a new ticket so this doesn't get forgotten? |
|
No need, i pushed to main already but forgot to follow up: 6f58a36 |
|
Great, thanks. I will forward this info to the relevant developer so we can confirm it all works for us. |
|
That appears to solve all our Mix/Elixir related issues. Thanks! |
OTP26-rc2 changed the default behaviour of the http client from
:verify_noneto:verify_peerwhich results in following error when trying to install hex:This PR fixes this, by explicitly defining
:verify_none.