O
orangekay
In order to connect to my secure payment gateway I need to supply a
certificate they provide for me in the form of a PEM file. In all of
their example code they accomplish this by setting a path to that file
in curl's options, and while I know there is a Ruby extension that
makes libcurl available, I am wondering if it is possible to accomplish
this same thing using the built-in functionality of NET::HTTP and
OpenSSL.
Looking through the OpenSSL "documentation" I see that there are
writable attributes named "cert" and "key" that would seem to provide
this ability, but I have no idea what I'm supposed to pass where. Does
it want a path or the actual data, and do I need to supply values for
both if the PEM file contains both the key and certificate in one
place? I'm rather new to Ruby and honestly have not been able to figure
out how anyone is expected to find anything in these three-paned RDoc
windows unless they already know where it is, so any info would be
greatly appreciated.
certificate they provide for me in the form of a PEM file. In all of
their example code they accomplish this by setting a path to that file
in curl's options, and while I know there is a Ruby extension that
makes libcurl available, I am wondering if it is possible to accomplish
this same thing using the built-in functionality of NET::HTTP and
OpenSSL.
Looking through the OpenSSL "documentation" I see that there are
writable attributes named "cert" and "key" that would seem to provide
this ability, but I have no idea what I'm supposed to pass where. Does
it want a path or the actual data, and do I need to supply values for
both if the PEM file contains both the key and certificate in one
place? I'm rather new to Ruby and honestly have not been able to figure
out how anyone is expected to find anything in these three-paned RDoc
windows unless they already know where it is, so any info would be
greatly appreciated.