CryptoSys PKI Pro Manual

Rsa.GetPublicKeyFromCert Method

Read public key from X.509 certificate into internal string format.

Syntax

[C#]
[ObsoleteAttribute( "Use Rsa.ReadPublicKey() instead", false )]
public static StringBuilder GetPublicKeyFromCert(
   string certFile 
)
[VB]
<ObsoleteAttribute( "Use Rsa.ReadPublicKey() instead", false )>
Public Shared Function GetPublicKeyFromCert (
   certFile As String 
) As StringBuilder

Parameters

certFile  String
Filename of certificate file (or its base64 representation)

Return Value

StringBuilder
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_GetPublicKeyFromCert

[Contents] [Index]

[PREV: Rsa.GetPrivateKeyFromPFX Method...]   [Contents]   [Index]   
   [NEXT: Rsa.KeyBits(String) Method...]

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