Click or drag to resize

RsaReadPrivateKeyFromPFX Method

Note: This API is now obsolete.

Read a private key directly from an encrypted PFX/PKCS-12 file into an "internal" private key string.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
[ObsoleteAttribute("Use Rsa.ReadPrivateKey() instead", false)]
public static StringBuilder ReadPrivateKeyFromPFX(
	string pfxFile,
	string password
)

Parameters

pfxFile  String
PKCS-12 filename
password  String
Password for PFX file

Return Value

StringBuilder
StringBuilder containing an internal representation of the private key; or an empty StringBuilder if error
Remarks
This returns a StringBuilder, not a string. Use sb.ToString() to obtain a string.
See Also