app/models/sws/web_service_result.rb
# Attaches our cert, key, and CA file based on the config options in web_services.yml.
Attaches our cert, key, and CA file based on the config options in web_services.yml.
Attaches our cert key and CA file based on the config options in web_services . yml .
def ssl_options
      check_cert_paths!
      @ssl_options ||= {
        :cert         => OpenSSL::X509::Certificate.new(File.open("#{Rails.root}/config/certs/#{config_options[:cert]}")),
        :key          => OpenSSL::PKey::RSA.new(File.open("#{Rails.root}/config/certs/#{config_options[:key]}")),
        :ca_file      => "#{Rails.root}/config/certs/#{config_options[:ca_file]}",
        :verify_mode  => OpenSSL::SSL::VERIFY_NONE 
      }
    end
def ssl_options check_cert_paths! @ssl_options ||= { :cert => OpenSSL :: X509 :: Certificate . new ( File . open ( "#{Rails.root}/config/certs/#{config_options[:cert]}" ) ) , :key => OpenSSL :: PKey :: RSA . new ( File . open ( "#{Rails.root}/config/certs/#{config_options[:key]}" ) ) , :ca_file => "#{Rails.root}/config/certs/#{config_options[:ca_file]}" , :verify_mode => OpenSSL :: SSL :: VERIFY_NONE } end
Attaches our cert, key, and CA file based on the config options in web_services.yml.
Attaches our cert key and CA file based on the config options in web_services . yml .
# FIXME - make VERIFY_PEER works for mac os