Permalink
Browse files

fix Excon SSL ca_path, ca_file settings

Fixes #175
  • Loading branch information...
mislav committed Aug 12, 2012
1 parent d83cc69 commit a922b6534eeb0305038e5882996bf30b6eba3f3b
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/faraday/adapter/excon.rb
@@ -14,7 +14,8 @@ def call(env)
opts = {}
if env[:url].scheme == 'https' && ssl = env[:ssl]
opts[:ssl_verify_peer] = !!ssl.fetch(:verify, true)
- opts[:ssl_ca_path] = ssl[:ca_file] if ssl[:ca_file]
+ opts[:ssl_ca_path] = ssl[:ca_path] if ssl[:ca_path]
+ opts[:ssl_ca_file] = ssl[:ca_file] if ssl[:ca_file]
end
if ( req = env[:request] )

0 comments on commit a922b65

Please sign in to comment.