CryptoSys PKI Toolkit Manual
Rsa.SavePrivateKeyInfo Method
Saves a private key string to an (unencrypted) PKCS-8 private key info file
Syntax
[C#]
public static int SavePrivateKeyInfo(
string outputFile,
string privateKey,
Rsa.Format format
)
[VB.NET]
Public Shared Function SavePrivateKeyInfo ( _
outputFile As String, _
privateKey As String, _
format As Rsa.Format _
) As Integer
Parameters
- outputFile
- Name of file to create
- privateKey
- Private key in internal format
- format
- Type: Rsa.Format
File format
Return Value
If successful, the return value is zero; otherwise it returns an error cod
Remarks
Do not use for a production key.
Examples (VB.NET)
See
Example1
See Also
VB6/C equivalent: RSA_SavePrivateKeyInfo
[Contents] [Index]