stop using httpclient's root cert set.

ref.) https://github.com/nahi/httpclient/issues/445
This commit is contained in:
nov 2021-10-01 11:50:08 +09:00
parent 1647bc42bd
commit 0f63289c35
1 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,11 @@ module FbGraph2
_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