X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/325930900b5c12d31c0a55fe4b5e564a186f53fb..5fbc96e38dd8dfcb3eb1ed0a5f4319ccaf244d6d:/cookbooks/wordpress/libraries/wordpress.rb diff --git a/cookbooks/wordpress/libraries/wordpress.rb b/cookbooks/wordpress/libraries/wordpress.rb index 92db4b199..56df13936 100644 --- a/cookbooks/wordpress/libraries/wordpress.rb +++ b/cookbooks/wordpress/libraries/wordpress.rb @@ -30,7 +30,9 @@ class Chef end def api_get(url) - @api_responses[url] ||= ::JSON.parse(::HTTPClient.new.get_content(url)) + http_client = ::HTTPClient.new + http_client.ssl_config.set_trust_ca("/etc/ssl/certs/ca-certificates.crt") + @api_responses[url] ||= ::JSON.parse(http_client.get_content(url)) end end end