SSL certificate challenges

Hello @voltone
Thanks for your response.

Below is what I get after I implemented your suggestion:

** (Poison.EncodeError) unable to encode value: {:options, {:certfile, {:ok, "Bag Attributes\n    localKeyID:...

It’s a very long error. I’ve just truncated it.

What could I be doing wrong?

My code is below:

options = [ssl: [certfile: File.read(Path.expand("./partner.pem")), password: String.to_charlist("testpem15"), versions: [:'tlsv1.2']]]
            
result=HTTPoison.post(https://ip:port, str, req_header, options)   

Thanks for your help.