from Hacker News

Ask HN: Use rails server application as client in a mutual SSL authentication

by alessiosantocs on 1/27/16, 2:35 PM with 0 comments

Hello there,

I'm trying to connect to a server web application that requires me to authenticate myself with a client SSL certificate. I have the certificate (in some .pfx format) because I downloaded it from the same website and it works fine using my web browser.

I am trying to connect to this website using a server application I am developing. I studied a bit what this is about and I guess I have to exchange my client certificate with the website. How do I do that in code? I mainly use Ruby/Rails but I am open to anything that could teach me how to do it.

Everything is very much appreciated. Thanks!