This is my curl request
`curl --insecure --location --request POST 'url' --header 'Content-Type: application/json' --data-raw '{
"client_id": "test"
}'
This worked fine!
Now this is my elixir request
HTTPoison.post("url", request, ssl: [verify: :verify_none])
Here I am getting error
{:error,
%HTTPoison.Error{
id: nil,
reason: {:tls_alert,
{:handshake_failure,
'TLS client: In state certify at ssl_handshake.erl:1783 generated CLIENT ALERT: Fatal - Handshake Failure\n {bad_cert,unable_to_match_altnames}'}}
}}
`
You could try to force ssl to
tlsv1.2.If this not works, try to remove
sslkey and/or if you are usinghackneyyou could try to configure withinsecureoption.By the way, which version of Erlang are you using?
The first recommendation was discussed here.