Skip to content

Commit 4a207ed

Browse files
committed
stop using httpclient's root cert set.
ref.) nahi/httpclient#445
1 parent a8f1d2a commit 4a207ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/rack/oauth2.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ def self.http_client(agent_name = "Rack::OAuth2 (#{VERSION})", &local_http_confi
4343
_http_client_ = HTTPClient.new(
4444
agent_name: agent_name
4545
)
46+
47+
# NOTE: httpclient gem seems stopped maintaining root certtificate set, use OS default.
48+
_http_client_.ssl_config.clear_cert_store
49+
_http_client_.ssl_config.cert_store.set_default_paths
50+
4651
http_config.try(:call, _http_client_)
4752
local_http_config.try(:call, _http_client_) unless local_http_config.nil?
4853
_http_client_.request_filter << Debugger::RequestFilter.new if debugging?

0 commit comments

Comments
 (0)