When I try:
HTTPoison.get! "https://facebook.com"
I get:
** (HTTPoison.Error) {:tls_alert, 'unknown ca'}
[error] SSL: :certify: ssl_handshake.erl:1606:Fatal error: unknown ca
(httpoison) lib/httpoison.ex:66: HTTPoison.request!/5
which is kind of expected since in my company I need to trust the firewall's certificate to get out.
I have trusted the certificate (.cer file) system wide, which is why wget
doesn't give me ssl errors when accessing https
URLs. But it seems that hackney/HTTPoison ignores this configuration.
How to I make HTTPoison/hackney recognize the certificate as a trusted certificate?