CryptoSys PKI Pro Manual

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

Int32
If 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]

[PREV: Rsa.SaveEncPrivateKey(String, String, Int32, String, Rsa.PbeOptions, Rsa.Format) Method...]   [Contents]   [Index]   
   [NEXT: Rsa.SavePublicKey Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.