-
Notifications
You must be signed in to change notification settings - Fork 434
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
bad_cert ssl error for google site #664
Comments
More information. I have access to a second laptop, where everything works fine btw. So this seems to be specific. The system that fails: Erlang/OTP 23 [erts-11.1.3] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [hipe] [dtrace]
Interactive Elixir (1.11.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> HTTPoison.get("https://www.googleapis.com/robot/v1/metadata/x509/[email protected]")
07:52:35.311 [info] TLS :client: In state :wait_cert_cr at ssl_handshake.erl:1952 generated CLIENT ALERT: Fatal - Handshake Failure
- {:bad_cert, :hostname_check_failed}
{:error,
%HTTPoison.Error{
id: nil,
reason: {:tls_alert,
{:handshake_failure,
'TLS client: In state wait_cert_cr at ssl_handshake.erl:1952 generated CLIENT ALERT: Fatal - Handshake Failure\n {bad_cert,hostname_check_failed}'}}
}} The system that passes has the same Elixir/Erlang versions with OS Catalina. I have tried completely removing and reinstalling elixir, erlang (via brew btw). So this might be a OS or environment specific bug, but anything I can do to help report this better please let me know. |
I have the same issue |
Are you running on Apple M1 or Intel? I am getting this error with M1 (Elixir 1.11, OTP 23, Hackney 1.16). Everything works fine on the Intel-based Mac on OSX 10. Wondering if is an M1 issue or an OSX 11 issue (or both). I'm hitting this through |
Same issue iex(1)>
HTTPoison.get("https://www.googleapis.com/robot/v1/metadata/x509/40example%40example.iam.gserviceaccount.com")
[info] TLS :client: In state :wait_cert_cr at ssl_handshake.erl:1952 generated CLIENT ALERT: Fatal - Handshake Failure
- {:bad_cert, :hostname_check_failed}
{:error,
%HTTPoison.Error{
id: nil,
reason: {:tls_alert,
{:handshake_failure,
'TLS client: In state wait_cert_cr at ssl_handshake.erl:1952 generated CLIENT ALERT: Fatal - Handshake Failure\n {bad_cert,hostname_check_failed}'}}
}} With
|
@connorjacobsen: I'm reproducing this error on an Intel Mac running OSX 11, with Elixir 1.11, OTP 23, Hackney 1.16. I'm encountering this issue when using |
Edit: properly passing the options gets this working for me as well. |
I can confirm this issue with OSX 11, Elixir 1.11, OTP 23 and Hackney 1.16. Same issue also occurs within Alpine - based Docker images built via Github Actions, and I also tested on another Notebook running Catalina with the same Elixir / OTP versions as above. Other https calls work fine. Setting the ssl version to tlsv1.2 "solves" the issue. |
It may be relevant to erlang/otp@addc42d. Did anyone tested with an older version of Erlang ? |
I have not, but I can later today. OSX 10.X, Elixir 1.11, OTP 23, and Hackney 1.16 had previously worked just fine so I hadn't tried downgrading OTP. |
I have run into this issue as well trying to call the Stripe API. I am running: macOS 11.0.1 I tried Erlang 23.0.4 and it still failed. I tried Erlang 22.3.4.13 and it succeeded. We use Docker to build our production images and it uses Ubuntu. Using Erlang 23.1.5 works correctly. Seems it might be an issue with OTP 23 and Big Sur. |
+1 on running into this! MacOS 11.0.1 I wasn't able to trial and error with different versions of Elixir/Erlang to see what succeeded – this is only happening to me locally, but I'll be docker-composing to avoid this for the time being. |
I would appear to be encountering the same issue. In my case the error occurs via |
should be fixed in latest master via 1c4afad . This change is similar to g-andrade/tls_certificate_check@bae3696 Please test and let me know. |
Pulled the latest from GitHub and ran our entire test suite and our dev environment on: macOS 11.0.1 I did not get any errors and everything behaved normally. Thanks! |
Can confirm the same: Static:
Variable (with hackney 1.16.0)
Using erlang 23.1.5 (via homebrew) with hackney 1c4afad works fine 🥳 |
@benoitc Fixes for me. Thank you! |
ok i will make a release it asap today. Thanks all for the feedback! |
I was wondering if we would be getting a release soon? Thanks. |
it will be published on monday.
On Sat 12 Dec 2020 at 00:33, Travis Chase ***@***.***> wrote:
I was wondering if we would be getting a release soon? Thanks.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#664 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAADRITF4PMVQLFK6IQYHO3SUKT43ANCNFSM4UAKXFJA>
.
--
Sent from my Mobile
|
This google seems to blow up consistently, works when I ignore ssl
https://www.googleapis.com/robot/v1/metadata/x509/[email protected]
OTP 23 hackney 1.16.0
The text was updated successfully, but these errors were encountered: