by Pieter Philippaerts [Pieter at mentalis dot org] posted on 2004/08/17 |
|
The Security Library only supports extracting public certificates (and not their private keys) from a PEM file (look at the Certificate.CreateFromPemFile method for details).
However, in your case you also need to access the private parts of the PEM file. You'll have to convert the certificate to a type that the CryptoAPI can handle, as described in http://www.mentalis.org/forum/thread.qpx/62 |