CryptoSys PKI Toolkit Manual

Rsa.GetPublicKeyFromCert Method

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

Syntax

[C#]
public static StringBuilder GetPublicKeyFromCert(
	string certFile
)
[VB.NET]
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.

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: RSA_GetPublicKeyFromCert

[Contents] [Index]

[HOME]   [NEXT: Rsa.KeyBits Method (String)...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.