Re: RestClient and SSL stores/default paths


David Ljung Madison <librelist.com@...>
 

I don't know much about SSL, but I'm trying to use RestClient to
connect to my SSL server. I tried the simple RestClient example
I found and added this to Resource.new:

:ssl_client_cert => OpenSSL::X509::Certificate.new(File.read("gd_intermediate.pem")),
:verify_ssl => OpenSSL::SSL::VERIFY_PEER
If you want to verify server certificates, you need to pass the
path to a Certification Authority (CA) file with the :ssl_ca_file
I tried that with:

:ssl_ca_file => "/etc/ssl/certs/Go_Daddy_Class_2_CA.pem",

But that didn't work either. What are the ssl settings I give to
RestClient and where do I get the certs?

Dave

-----------------------------------------------------------------------------
Dave Ljung Madison http://GetDave.com/ 415.341.5555
------- Walking on water and developing software from a specification -------
are easy if both are frozen. - Edward V. Berard

Join {main@rest-client.groups.io to automatically receive all group messages.