Loads the public key from a a PEM certificate file.

Namespace: LLCryptoLib.Crypto
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public static RSA LoadPublicKeyFromPem(
	string pemFile
)
Visual Basic
Public Shared Function LoadPublicKeyFromPem ( _
	pemFile As String _
) As RSA
Visual C++
public:
static RSA^ LoadPublicKeyFromPem(
	String^ pemFile
)

Parameters

pemFile
Type: System..::..String
The PEM certificate file.

Return Value

An RSA object containing the Public Key.

Exceptions

ExceptionCondition
LLCryptoLib..::..LLCryptoLibExceptionFile Too Long

See Also