Skip to content

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

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions