]> git.openstreetmap.org Git - chef.git/commitdiff
wordpress: use ssl_config.set_default_paths instead of a hardcoded bundle location
authorGrant Slater <github@firefishy.com>
Wed, 4 Dec 2024 18:05:17 +0000 (18:05 +0000)
committerGrant Slater <github@firefishy.com>
Wed, 4 Dec 2024 18:05:17 +0000 (18:05 +0000)
cookbooks/wordpress/libraries/wordpress.rb

index 56df13936d08961dad1fef3b52c13df5901c7a0b..031e21ac057ffc9a8d4599fff66bb8d1530dfa40 100644 (file)
@@ -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