Skip to content

Commit

Permalink
Clean up SSL client cert example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Jan 23, 2012
1 parent 259c9ce commit 5d9105e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions activeresource/lib/active_resource/base.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -157,10 +157,14 @@ module ActiveResource
# #
# class Person < ActiveResource::Base # class Person < ActiveResource::Base
# self.site = "https://secure.api.people.com/" # 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)), # File.open(pem_file_path, 'rb') do |pem_file|
# :ca_path => "/path/to/OpenSSL/formatted/CA_Certs", # self.ssl_options = {
# :verify_mode => OpenSSL::SSL::VERIFY_PEER} # 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 # end
# #
# #
Expand Down

0 comments on commit 5d9105e

Please sign in to comment.