问题
I'm trying to call a dev environment REST service from my phoenix server, but I don't want to whitelist the CA. For the record, I don't even know how to add the CA key to Phoenix's whitelist.
How to do https request from phoenix while also ignoring the SSL's CA error?
回答1:
Using HTTPoison, you need to pass the :insecure
hackney option.
HTTPoison.get! url, [], hackney: [:insecure]
来源:https://stackoverflow.com/questions/32767162/how-to-do-https-request-from-phoenix-and-ignore-the-ca-error