We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 684600b + c857683 commit 2cf7c7eCopy full SHA for 2cf7c7e
lib/pdk/util/vendored_file.rb
@@ -51,8 +51,11 @@ def download_file
51
uri = URI.parse(url)
52
http = Net::HTTP.new(uri.host, uri.port)
53
http.use_ssl = true
54
- # TODO: Get rid of this
55
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE if Gem.win_platform?
+ if Gem.win_platform?
+ cert_path = 'C:/Program Files/Puppet Labs/DevelopmentKit\ssl\cert.pem'
56
+ http.cert = OpenSSL::X509::Certificate.new(cert_path)
57
+ http.verify_mode = OpenSSL::SSL::VERIFY_PEER
58
+ end
59
request = Net::HTTP::Get.new(uri.request_uri)
60
response = http.request(request)
61
0 commit comments