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

macOS cannot create PFX with a mix of HasPrivateKey and !HasPrivateKey certs #24702

Closed
bartonjs opened this issue Jan 17, 2018 · 1 comment · Fixed by dotnet/corefx#42226
Closed

Comments

@bartonjs
Copy link
Member

#24554, but for macOS. (Different fix, and the macOS existing failure is holding up a Linux fix)

var collection = new X509Certificate2Collection();
collection.Add(certificateWithPrivateKey);
collection.Add(anotherCertWithoutPrivateKey);

var output = collection.Export(X509ContentType.Pkcs12);

See also dotnet/corefx#26152.

@Wintereise
Copy link

Hi team,

Just wondering if the fix for this ended up making it into 2.1.0 since that recently got released.

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 5.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants