Rsa.SavePrivateKeyInfo Method
Save 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]
Public Shared Function SavePrivateKeyInfo (
outputFile As String,
privateKey As String,
format As Rsa.Format
) As Integer
Parameters
- outputFile String
- Name of file to create
- privateKey String
- Private key in internal format
- format Rsa.Format
- File format
Return Value
Int32If successful, the return value is zero; otherwise it returns a nonzero
error code
Remarks
Do not use for a production key.
See Also
VB6/C equivalent: RSA_SavePrivateKeyInfo
[Contents] [Index]