Displaying 1 result from an estimated 1 matches for "client_sign".
Did you mean:
  client_site
  
2007 Mar 29
0
using certificates with ActiveResource
...t and key. Didn''t find it, so I took the 
approach of overriding Net::HTTP#cert and Net::HTTP#key to return my 
cert and key:
(environment.rb)
require ''net/https''
class Net::HTTP
   def cert
     OpenSSL::X509::Certificate.new(File.read(RAILS_ROOT + 
"/config/certs/client_signed.pem"))
   end
   def key
     OpenSSL::PKey::RSA.new(File.read(RAILS_ROOT + 
"/config/certs/client.key"))
   end
end
That still wasn''t working... I think I was getting an SSL error. So, I 
took a detour off to write a standalone ruby script to do the connection 
using the...