Skip to content
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

[error] SSL: :certify: ssl_alert.erl:88:Fatal error: unknown ca #294

Closed
mconigliaro opened this issue Oct 4, 2017 · 3 comments
Closed

Comments

@mconigliaro
Copy link

mconigliaro commented Oct 4, 2017

We're seeing this error with HTTPoison 0.13.0 when we don't set the cacertfile option in API calls. The following seems to fix it:

HTTPoison.get("https://example.com/", [], ssl: [cacertfile: "/etc/ssl/certs/ca-certificates.crt"])

What we don't understand is that this used to work for us without the cacertfile option. What location does HTTPoison use when the cacertfile isn't set? Is there some global Erlang option it falls back to?

@mconigliaro
Copy link
Author

mconigliaro commented Oct 4, 2017

This looks related to #62 and #119. They discovered the same workaround we did (use the cacertfile parameter), but I'd still love to know how this ever worked for us, and what made it stop.

@mconigliaro
Copy link
Author

mconigliaro commented Oct 4, 2017

Unless I'm missing something (I'm pretty new to Elixir), it looks like HTTPoison relies on hackney, which gets its default CA certificates from certifi (certifi/erlang-certifi#21).

@mconigliaro
Copy link
Author

We gave up and just started using the cacertfile option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant