I recently needed to deal with ssl connection using client side certificates. The ruby openssl bindings are fairly impenetrable, here’s what worked for me (at least in part as a note for myself in the future)
1 2 3 4 5 |
|
If the key you’ve got is a .p12 file (which is what the key chain utility on the mac exports) then you’ll need to convert it like so
openssl pkcs12 -in key.p12 -nocerts -nodes -out key.pem