From 97a521a5ea4b1fc8d76da20349e0cfbfbcebc9f0 Mon Sep 17 00:00:00 2001 From: david22swan Date: Mon, 23 Sep 2024 17:27:33 +0100 Subject: [PATCH] (CAT-2007) Update http setting cert to setting ca_file --- lib/pdk/util/vendored_file.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pdk/util/vendored_file.rb b/lib/pdk/util/vendored_file.rb index c9df7e73c..46a8635a8 100644 --- a/lib/pdk/util/vendored_file.rb +++ b/lib/pdk/util/vendored_file.rb @@ -52,8 +52,7 @@ def download_file http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true if Gem.win_platform? - cert_path = 'C:/Program Files/Puppet Labs/DevelopmentKit\ssl\cert.pem' - http.cert = OpenSSL::X509::Certificate.new(cert_path) + http.ca_file = 'C:/Program Files/Puppet Labs/DevelopmentKit/ssl/cert.pem' http.verify_mode = OpenSSL::SSL::VERIFY_PEER end request = Net::HTTP::Get.new(uri.request_uri)