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: CryptoSysPKIAssembly: 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
)
<ObsoleteAttribute("Use Rsa.ReadPrivateKey() instead", false)>
Public Shared Function ReadPrivateKeyFromPFX (
pfxFile As String,
password As String
) As StringBuilder
Parameters
- pfxFile String
- PKCS-12 filename
- password String
- Password for PFX file
Return Value
StringBuilderStringBuilder containing an internal representation of the
private key; or an empty StringBuilder if error
RemarksThis returns a StringBuilder, not a string.
Use sb.ToString() to obtain a string.
See Also