CryptoSys PKI Pro Manual

Rsa.SavePublicKey Method

Save a public key string to PKCS-1 public key file.

Syntax

[C#]
public static int SavePublicKey(
   string outputFile,
   string publicKey,
   Rsa.Format format 
)
[VB]
Public Shared Function SavePublicKey (
   outputFile As String,
   publicKey As String,
   format As Rsa.Format 
) As Integer

Parameters

outputFile  String
Name of file to create
publicKey  String
Public 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

See Also

VB6/C equivalent: RSA_SavePublicKey

[Contents] [Index]

[PREV: Rsa.SavePrivateKeyInfo Method...]   [Contents]   [Index]   
   [NEXT: Rsa.ToXMLString(String, Rsa.XmlOptions) Method...]

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