edgurgel / httpoison

Yet Another HTTP client for Elixir powered by hackney
https://hex.pm/packages/httpoison
MIT License
2.22k stars 339 forks source link

Default TLS version? #461

Open d-wire opened 1 year ago

d-wire commented 1 year ago

I was looking through the docs and couldn't seem to find where the default TLS version was specified. If we don't pass in an option of ssl: [{:versions, [:"tlsv1.2"]}], what TLS version does it use under the hood?

Thanks in advance!

DimitrijeDimitrijevic commented 1 year ago

@d-wire Hi, I am looking also for this, because when I upgraded the app to erlang OTP 26 and latest elixir, and all the deps my app stopped working. Manage to start it again by passing ssl_override: true to httpoison options. Have you found which is default TLS version ?

edgurgel commented 11 months ago

Hey team the default SSL options can be found here: https://github.com/edgurgel/httpoison/blob/main/lib/httpoison/base.ex#L821-L832

As pointed out from 2.0.0 you have to pass ssl_override to completely override what has been set-up and define your own SSL settings.