Re: RestClient and SSL stores/default paths


Cyril Rohr <cyril.rohr@...>
 

Hello,

On Apr 12, 2012, at 2:26 AM, David Ljung Madison wrote:

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 option. This file should contain at least the certificate of the CA that signed the server certificate you want to verify (in your case, GoDaddy's).

That being said, it would be nice to support a store path option so that it's easier to verify certificates delivered by common CAs.

Cyril
--
http://crohr.me

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