We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 925b58d commit 09b9743Copy full SHA for 09b9743
lib/zencoder/http/net_http.rb
@@ -62,10 +62,17 @@ def http
62
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
63
else
64
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
65
- end
66
67
- http.ca_file = ca_file if ca_file
68
- http.ca_path = ca_path if ca_path
+ http.cert_store = OpenSSL::X509::Store.new
+ http.cert_store.set_default_paths
+
69
+ if defined?(OpenSSL::X509::V_FLAG_CRL_CHECK_ALL)
70
+ http.cert_store.flags = OpenSSL::X509::V_FLAG_CRL_CHECK_ALL
71
+ end
72
73
+ http.cert_store.add_file(ca_file) if ca_file
74
+ http.cert_store.add_path(ca_path) if ca_path
75
76
end
77
78
http
0 commit comments