RsaGetPrivateKeyFromPFX Method |
Extract an encrypted private key from a PKCS-12 PKCS8ShroudedKeyBag,
saving the output directly as a new file.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int GetPrivateKeyFromPFX(
string outputFile,
string pfxFile
)
Public Shared Function GetPrivateKeyFromPFX (
outputFile As String,
pfxFile As String
) As Integer
Parameters
- outputFile String
- Name of new file to create
- pfxFile String
- PKCS-12 filename
Return Value
Int32If successful, it returns the number of bytes written to the output file;
otherwise it returns a negative
error code
See Also