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.NET]
<ObsoleteAttribute("Use Rsa.ReadPublicKey() instead", False)> _
Public Shared Function GetPublicKeyFromCert ( _
	certFile As String _
) As StringBuilder

Parameters

certFile
Filename of certificate file (or its base64 representation)

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_GetPublicKeyFromCert

[Contents] [Index]

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

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