Skip to content

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

Closed
dotnet/corefx
#42226

Description

@bartonjs

#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.

Activity

  1. Wintereise commented on May 31, 2018

    @Wintereise

    Hi team,

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

  2. transferred this issue fromdotnet/corefxon Jan 31, 2020
  3. added this to the 5.0 milestone on Jan 31, 2020
  4. ghost locked as resolved and limited conversation to collaborators on Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions