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 c9795e8 commit ae11c1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/swd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ def self.http_client
_http_client_ = HTTPClient.new(
:agent_name => "SWD (#{VERSION})"
)

# 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_client_.request_filter << Debugger::RequestFilter.new if debugging?
http_config.try(:call, _http_client_)
_http_client_
Expand Down

0 comments on commit ae11c1b

Please sign in to comment.