CryptoSys PKI Pro Manual

rsaSaveKey

Save an internal RSA key string to a key file.

Syntax

[VBA]
Public Function rsaSaveKey ( _
    szOutputFile As String, _
    szKeyStr As String, _
    Optional nOptions As Long = 0 _
) As Long

Parameters

szOutputFile
Name of output file to be created.
szKeyStr
Key string (public or private) in internal format.
nOptions
Add one of the following to output in textual PEM format [default (0) format=DER binary]
PKI_KEY_FORMAT_PEM
PKI_KEY_FORMAT_SSL

Return Value

Long: Zero on success else a nonzero error code.

Remarks

If the key is a private key it will be saved in unencrypted form. To save a private key in encrypted form, use rsaSaveEncKey.
[PREV: rsaSaveEncKey...]   [Contents]   [Index]   
   [NEXT: rsaToXMLString...]

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