Skip to content

Commit

Permalink
stop using httpclient's root cert set.
Browse files Browse the repository at this point in the history
  • Loading branch information
nov committed Oct 1, 2021
1 parent a8f1d2a commit 4a207ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/rack/oauth2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ def self.http_client(agent_name = "Rack::OAuth2 (#{VERSION})", &local_http_confi
_http_client_ = HTTPClient.new(
agent_name: agent_name
)

# NOTE: httpclient gem seems stopped maintaining root certtificate set, use OS default.
_http_client_.ssl_config.clear_cert_store
_http_client_.ssl_config.cert_store.set_default_paths

http_config.try(:call, _http_client_)
local_http_config.try(:call, _http_client_) unless local_http_config.nil?
_http_client_.request_filter << Debugger::RequestFilter.new if debugging?
Expand Down

0 comments on commit 4a207ed

Please sign in to comment.