CryptoSys PKI Pro Manual

Rsa.ReadPublicKey Method

Read from a file or string containing a public key into an "internal" public key string.

Syntax

[C#]
public static StringBuilder ReadPublicKey(
	string certOrPublicKeyFile
)
[VB.NET]
Public Shared Function ReadPublicKey ( _
	certOrPublicKeyFile As String _
) As StringBuilder

Parameters

certOrPublicKeyFile
Name of X.509 certificate or public key file or a PEM String containing the key

Return Value

StringBuilder containing an internal representation of the public key; or an empty StringBuilder if error

Remarks

This returns a StringBuilder, not a string. Use sb.ToString() to obtain a string.

See Also

VB6/C equivalent: RSA_ReadPublicKey

[Contents] [Index]

[PREV: Rsa.ReadPrivateKeyInfo Method...]   [Contents]   [Index]   
   [NEXT: Rsa.SaveEncKey Method...]

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