Hello Hai,
you should say what you're trying to do with that file. You may start to
parse the file by means of BC's PKCS12Store:
Pkcs12Store p12s = new Pkcs12Store ( new MemoryStream ( p12file ), pin );
As you see, you may also require a PIN. Read RSA's PKCS#12 standard for
details. But i presume this is not what you're looking for.
If you just want to sign/decrypt things, you may use either OpenSSL or
Microsoft's Crypto-API or some PKCS#11 middleware, depending on the
software you intend to use (command line, Adobe/MS Office, Mozilla, ...).
Regards,
Torsten
Am 12.01.2013 00:22, schrieb Hai Ning:
I have a binary file someone sent me. I am told it is DER encoded and I
have the private key in a PFX format.
How do I use BC to decode this file using C#? Is there any sample code?
Thanks.
-Hai