-
Notifications
You must be signed in to change notification settings - Fork 427
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
:tls_alert, 'handshake failure', https://www.bbc.co.uk #344
Comments
What OTP version are you using? |
Erlang/OTP 19 [erts-8.0] [source-6dc93c1] [64-bit] [async-threads:10] [hipe] [kernel-poll:false] Is this whats needed? I'm not too sure how to get more information that the Shell startup. |
Can you try checking if OTP 18 works? I have seen a similar regression on OTP 19. |
@ericmj I get the same issue with 18.3.4 from Erlang Solutions Erlang/OTP 18 [erts-7.3.1] [source-25741fd] [64-bit] [async-threads:10] [hipe] [kernel-poll:false] |
@docapotamus can you retry with the latest master? I don't reproduce it right now: Eshell V7.2.1 (abort with ^G)
1> application:ensure_all_started(hackney).
{ok,[idna,mimerl,certifi,ssl_verify_fun,metrics,hackney]}
2> hackney:get("https://www.bbc.co.uk").
{ok,200,
[{<<"Server">>,<<"nginx">>},
{<<"Content-Type">>,<<"text/html; charset=utf-8">>},
{<<"ETag">>,<<"W/\"2ea59-t07wZlKNKmIwdVEaVGr5Iw\"">>},
{<<"X-Frame-Options">>,<<"SAMEORIGIN">>},
{<<"x-origin-route">>,<<"xrt-ext">>},
{<<"Content-Length">>,<<"191065">>},
{<<"Date">>,<<"Thu, 25 Aug 2016 14:28:48 GMT">>},
{<<"Connection">>,<<"keep-alive">>},
{<<"Set-Cookie">>,
<<"BBC-UID=35678baf90804ab0792a65e611b99a63ed19b791271444463a80"...>>},
{<<"X-Cache-Action">>,<<"HIT">>},
{<<"X-Cache-Hits">>,<<"2">>},
{<<"X-Cache-Age">>,<<"17">>},
{<<"Cache-Control">>,
<<"private, max-age=0, must-revalidate">>},
{<<"Vary">>,
<<"Accept-Encoding, X-CDN, X-BBC-Edge-Schem"...>>}],
#Ref<0.0.2.2025>}
3> |
I just used the Rebar example from the README
Still have the same issue. I am still trying on OTP19. I am using a fresh install of Debian with all updates each time on Digital Ocean just so I know I'm not breaking anything. |
@docapotamus i reproduced it with erlang 19 (was using erlang 18). I am checking which change could cause this error... |
Thanks @benoitc. I should have tested it with Erlang 18 really. |
@docapotamus it should now work with erlang 19: Erlang/OTP 19 [erts-8.0.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:0] [kernel-poll:false]
Eshell V8.0.3 (abort with ^G)
1> application:ensure_all_started(hackney).
{ok,[idna,mimerl,certifi,ssl_verify_fun,metrics,hackney]}
2> hackney:get("https://www.bbc.co.uk").
{ok,200,
[{<<"Server">>,<<"nginx">>},
{<<"Content-Type">>,<<"text/html; charset=utf-8">>},
{<<"ETag">>,<<"W/\"2c837-nLA+fDke2xr7Rl5EAJxYRw\"">>},
{<<"X-Frame-Options">>,<<"SAMEORIGIN">>},
{<<"x-origin-route">>,<<"xrt-ext">>},
{<<"Content-Length">>,<<"182327">>},
{<<"Date">>,<<"Fri, 26 Aug 2016 09:34:55 GMT">>},
{<<"Connection">>,<<"keep-alive">>},
{<<"Set-Cookie">>,
<<"BBC-UID=35574c10a0cd238fd8fecc42b1a94721c21aac85871474e67aa0"...>>},
{<<"X-Cache-Action">>,<<"HIT">>},
{<<"X-Cache-Hits">>,<<"5">>},
{<<"X-Cache-Age">>,<<"104">>},
{<<"Cache-Control">>,
<<"private, max-age=0, must-revalidate">>},
{<<"Vary">>,
<<"Accept-Encoding, X-CDN, X-BBC-Edge-Schem"...>>}],
#Ref<0.0.1.2055>} |
@benoitc Thank you very much. |
Any way to bump hackney to 1.6.2? This was a pretty critical fix for us Erlang 19 users. |
@benoitc Hi, I have the same issue using Erlang 19.1 on macOS Sierra. Should I create the separate issue for that? Here is my deps definition:
|
I'm still seeing this issue with hackney 1.6.3 on Erlang/OTP 19 (via Elixir 1.3.3 on Ubuntu 16.04). I also see the same problem just doing
(while browsers and cURL can connect to "https://www.bbc.co.uk" just fine) So maybe this is a problem in underlying erlang ssl library? |
Hello,
I originally posted this in the HTTPoison repository but I was informed it is as issue with hackney/ssl (edgurgel/httpoison#164). Please feel free to point me in the right direction if I am wrong again.
I am trying to check
https://www.bbc.co.uk
from HTTPoison and receiving:[error] SSL: :hello: ssl_alert.erl:97:Fatal error: handshake failure
With the following tuple returned:
{:error, %HTTPoison.Error{id: nil, reason: {:tls_alert, 'handshake failure'}}}}
I can't see anything wrong with the certificate when using
openssl s_client -connect www.bbc.co.uk:443
:I can provide any more details that are needed. Its seems to be working in all browsers and via curl. I tested this against a fresh home brew installation of OpenSSL but I am also getting the issue on up to date Debian Jessie Machine.
I am using the Erlangsolutions packages on Debian.
Not sure how the Erlang TLS/SSL module works but I'm wondering if it is an issue there.
Thanks in advance
The text was updated successfully, but these errors were encountered: