Skip to content

Commit

Permalink
(CAT-2007) Update http setting cert to setting ca_file
Browse files Browse the repository at this point in the history
  • Loading branch information
david22swan committed Sep 23, 2024
1 parent 2cf7c7e commit 97a521a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/pdk/util/vendored_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 97a521a

Please sign in to comment.