Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(CAT-2007) Use vendored cert files and VERIFY_PEER wth NET::HTTP on Windows #1396

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

david22swan
Copy link
Member

@david22swan david22swan commented Sep 18, 2024

Link to successful test chain: https://jenkins-platform.delivery.puppetlabs.net/view/PDK/view/pdk-vanagon/job/platform_pdk_pdk-van-init_main/912/

Screenshot 2024-09-18 at 3 59 52 PM

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.49%. Comparing base (684600b) to head (c857683).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1396   +/-   ##
=======================================
  Coverage   88.49%   88.49%           
=======================================
  Files         127      127           
  Lines        5329     5329           
=======================================
  Hits         4716     4716           
  Misses        613      613           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@david22swan david22swan added bugfix and removed bug labels Sep 18, 2024
@danadoherty639 danadoherty639 merged commit 2cf7c7e into main Sep 18, 2024
10 of 11 checks passed
@danadoherty639 danadoherty639 deleted the CAT-2007-2 branch September 18, 2024 17:09
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'
http.cert = OpenSSL::X509::Certificate.new(cert_path)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@david22swan I think you want to call the ca_file= setter, passing the path to ca.pem file. The method you're calling is for the client cert which shouldn't be necessary for the pdk. See https://docs.ruby-lang.org/en/master/Net/HTTP.html#attribute-i-ca_file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants