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

Handle PKCS#8 private keys in Windows #683

Merged
merged 3 commits into from
Oct 15, 2024
Merged

Handle PKCS#8 private keys in Windows #683

merged 3 commits into from
Oct 15, 2024

Conversation

sfod
Copy link
Contributor

@sfod sfod commented Oct 11, 2024

Issue #, if available:

Currently, Windows implementation of PKI utils cannot decode private keys stored in the PKCS#8 format.

Description of changes:

PKCS#8 can be encrypted and unencrypted. This PR adds support for unencrypted PKCS#8 format only.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@sbSteveK sbSteveK left a comment

Choose a reason for hiding this comment

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

See comment regarding potential memory leak. Besides that, looks solid.

@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.39%. Comparing base (dc41ddc) to head (43a21b7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #683   +/-   ##
=======================================
  Coverage   80.39%   80.39%           
=======================================
  Files          28       28           
  Lines        5992     5992           
=======================================
  Hits         4817     4817           
  Misses       1175     1175           

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

@sfod sfod merged commit 5227c06 into main Oct 15, 2024
39 checks passed
@sfod sfod deleted the fix-private-key-win branch October 15, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants