mirror of
https://github.com/lostisland/faraday.git
synced 2025-08-29 00:03:58 -04:00
Support :cert_store SSL option
This commit is contained in:
parent
ddc41641b2
commit
a461c234cb
@ -19,9 +19,10 @@ module Faraday
|
||||
ssl = env[:ssl]
|
||||
http.verify_mode = ssl[:verify_mode] || ssl.fetch(:verify, true) ?
|
||||
OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE
|
||||
http.cert = ssl[:client_cert] if ssl[:client_cert]
|
||||
http.key = ssl[:client_key] if ssl[:client_key]
|
||||
http.ca_file = ssl[:ca_file] if ssl[:ca_file]
|
||||
http.cert = ssl[:client_cert] if ssl[:client_cert]
|
||||
http.key = ssl[:client_key] if ssl[:client_key]
|
||||
http.ca_file = ssl[:ca_file] if ssl[:ca_file]
|
||||
http.cert_store = ssl[:cert_store] if ssl[:cert_store]
|
||||
end
|
||||
|
||||
http.read_timeout = http.open_timeout = req[:timeout] if req[:timeout]
|
||||
|
Loading…
x
Reference in New Issue
Block a user