How to execute an HTTPS request from Phoenix and ignore CA error

I am trying to call the REST service for ex-dev environment from my phoenix server, but I do not want the CA whitelist. For the record, I don’t even know how to add the CA key to the Phoenix whitelist.

How to execute https request from phoenix, and also ignore SSL CA error?

+7
elixir ssl-certificate phoenix-framework
source share
1 answer

Using HTTPoison , you need to pass the option :insecure hackney.

 HTTPoison.get! url, [], hackney: [:insecure] 
+7
source

All Articles