Click or drag to resize

RsaGetPrivateKeyFromPFX Method

Extract an encrypted private key from a PKCS-12 PKCS8ShroudedKeyBag, saving the output directly as a new file.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int GetPrivateKeyFromPFX(
	string outputFile,
	string pfxFile
)

Parameters

outputFile  String
Name of new file to create
pfxFile  String
PKCS-12 filename

Return Value

Int32
If successful, it returns the number of bytes written to the output file; otherwise it returns a negative error code
See Also