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 1647bc4 commit 0f63289
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/fb_graph2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ def http_client(access_token = nil)
_http_client_ = HTTPClient.new(
agent_name: "FbGraph2 (#{gem_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.delete_if do |filter|
filter.is_a? HTTPClient::WWWAuth
end
Expand Down

0 comments on commit 0f63289

Please sign in to comment.