R
R
Riley Usagi2018-03-15 12:35:09
Ruby on Rails
Riley Usagi, 2018-03-15 12:35:09

Rails + RestClient + SSL + PFX (p12) = how to be in general, huh?

Good afternoon, ladies and gentlemen.
I desperately need your advice.
The task arose - to connect through a rail application to a remote API, authorization in which occurs only by key.
The key was given to us in .pfx format . Maybe someone knows what kind of a disgrace this is.
In all the examples that I managed to find, either a bunch of .pem files is used, or, in rare cases, .p12
. However, no matter how much I try to pull them out of .pfx and use them in RestClient , authorization fails.
The essence of the problem lies in the fact that I generally have little idea of ​​​​the principle of information exchange in this vein, especially in the presence of .pfx.
I ask to prompt - how to be, where to dig?
Perhaps someone has already done something similar or seen similar examples of the implementation of a similar task.
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2018-03-15
@CityCat4

.pfx is an early version of the PKCS#12 format. How to convert - written here
UPD: Most likely you will need a key, a certificate and a CA certificate separately. I don’t know how this is done in software, but let’s say in VPN all these components are specified separately. Although it may be exactly the opposite - the program itself knows how to rip PFX

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question