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

Dispose key when importing X.509 PEM #76329

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

vcsjones
Copy link
Member

The import delegate is always going to be pointing to some CopyWithPrivateKey. Since those retain the key into the new certificate, we have a lingering copy lying around during the import which ends up getting finalized.

Based on comment via #76277 (comment).

@ghost
Copy link

ghost commented Sep 28, 2022

Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones
See info in area-owners.md if you want to be subscribed.

Issue Details

The import delegate is always going to be pointing to some CopyWithPrivateKey. Since those retain the key into the new certificate, we have a lingering copy lying around during the import which ends up getting finalized.

Based on comment via #76277 (comment).

Author: vcsjones
Assignees: -
Labels:

area-System.Security

Milestone: -

Copy link
Member

@bartonjs bartonjs left a comment

Choose a reason for hiding this comment

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

So much for my "after lunch" project :)

@vcsjones
Copy link
Member Author

So much for my "after lunch" project :)

Just trying to give you a longer lunch.

@vcsjones vcsjones merged commit b631a67 into dotnet:main Sep 29, 2022
@vcsjones vcsjones deleted the dispose-key-pem-import branch September 29, 2022 01:59
@ghost ghost locked as resolved and limited conversation to collaborators Oct 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants