Permalink
Browse files

Clean up SSL client cert example

  • Loading branch information...
1 parent 259c9ce commit 5d9105e7420c6b865728dbb87e7c2580cc842b17 @jeremy jeremy committed Jan 23, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 activeresource/lib/active_resource/base.rb
@@ -157,10 +157,14 @@ module ActiveResource
#
# class Person < ActiveResource::Base
# self.site = "https://secure.api.people.com/"
- # self.ssl_options = {:cert => OpenSSL::X509::Certificate.new(File.open(pem_file))
- # :key => OpenSSL::PKey::RSA.new(File.open(pem_file)),
- # :ca_path => "/path/to/OpenSSL/formatted/CA_Certs",
- # :verify_mode => OpenSSL::SSL::VERIFY_PEER}
+ #
+ # File.open(pem_file_path, 'rb') do |pem_file|
+ # self.ssl_options = {
+ # cert: OpenSSL::X509::Certificate.new(pem_file),
+ # key: OpenSSL::PKey::RSA.new(pem_file),
+ # ca_path: "/path/to/OpenSSL/formatted/CA_Certs",
+ # verify_mode: OpenSSL::SSL::VERIFY_PEER }
+ # end
# end
#
#

0 comments on commit 5d9105e

Please sign in to comment.