From 6985b0a551a62e79ecb3abaf98360f7e2b395855 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 4 Dec 2024 18:05:17 +0000 Subject: [PATCH] wordpress: use ssl_config.set_default_paths instead of a hardcoded bundle location --- cookbooks/wordpress/libraries/wordpress.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/wordpress/libraries/wordpress.rb b/cookbooks/wordpress/libraries/wordpress.rb index 56df13936..031e21ac0 100644 --- a/cookbooks/wordpress/libraries/wordpress.rb +++ b/cookbooks/wordpress/libraries/wordpress.rb @@ -31,7 +31,7 @@ class Chef def api_get(url) http_client = ::HTTPClient.new - http_client.ssl_config.set_trust_ca("/etc/ssl/certs/ca-certificates.crt") + http_client.ssl_config.set_default_paths # https://github.com/nahi/httpclient/issues/445 @api_responses[url] ||= ::JSON.parse(http_client.get_content(url)) end end -- 2.39.5