Skip to content

Commit

Permalink
Merge pull request #1398 from puppetlabs/CAT-2007
Browse files Browse the repository at this point in the history
(CAT-2007) Update http setting cert to setting ca_file
  • Loading branch information
LukasAud authored Sep 24, 2024
2 parents 2cf7c7e + 97a521a commit f8a1a61
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 f8a1a61

Please sign in to comment.