Question:
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:
http://www.chilkatsoft.com/preRelease/ChilkatDotNet4-9.5.0-win32.zip
http://www.chilkatsoft.com/preRelease/ChilkatDotNet4-9.5.0-x64.zip
See the ExportToPfxData method added to the reference documentation here:
http://www.chilkatsoft.com/refdoc/csCertRef.html