This is to avoid creating a .pfx file on the computer. I tried to serialize the object but it won't let me because Chilkat.Cert is not marked as serializable.
I tried to use .ExportCertDer() method, however, when i try to instantiate a X509Certificate2 object it tells me it doesn't have a private key
There is an ExportToPfxFile method, but it (obviously) exports to a PFX file. I will add an ExportToPfxData method to export to an in-memory byte array. Please let me know exactly what build you would need (programming language, operating system, and whatever else is applicable: .NET Framework, Visual Studio version, Perl version, Python version, 32-bit/64-bit, etc.)
Here are the new builds:
See the ExportToPfxData method added to the reference documentation here: