CryptoSys PKI Pro Manual

Rsa.ReadPrivateKeyFromPFX Method

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

Syntax

[C#]
[ObsoleteAttribute("Use Rsa.ReadPrivateKey() instead", false)]
public static StringBuilder ReadPrivateKeyFromPFX(
	string pfxFile,
	string password
)
[VB.NET]
<ObsoleteAttribute("Use Rsa.ReadPrivateKey() instead", False)> _
Public Shared Function ReadPrivateKeyFromPFX ( _
	pfxFile As String, _
	password As String _
) As StringBuilder

Parameters

pfxFile
PKCS-12 filename
password
Password for PFX file

Return Value

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

VB6/C equivalent: RSA_ReadPrivateKeyFromPFX

[Contents] [Index]

[PREV: Rsa.ReadPrivateKey Method...]   [Contents]   [Index]   
   [NEXT: Rsa.ReadPrivateKeyInfo Method...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.