From 0f63289c35f703636e2187187f7e431c8142fb25 Mon Sep 17 00:00:00 2001 From: nov Date: Fri, 1 Oct 2021 11:50:08 +0900 Subject: [PATCH] stop using httpclient's root cert set. ref.) https://github.com/nahi/httpclient/issues/445 --- lib/fb_graph2.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/fb_graph2.rb b/lib/fb_graph2.rb index facf1de..c4ee5c3 100644 --- a/lib/fb_graph2.rb +++ b/lib/fb_graph2.rb @@ -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