Loads a DER encoded certificate and a private key (in PKCS #8, PuTTY or SSLeay format) from the specified files.

Namespace:  Rebex.Security.Certificates
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Shared Function LoadDerWithKey ( _
	certificatePath As String, _
	privateKeyPath As String, _
	privateKeyPassword As String _
) As Certificate
C#
public static Certificate LoadDerWithKey(
	string certificatePath,
	string privateKeyPath,
	string privateKeyPassword
)

Parameters

certificatePath
Type: System..::..String
Path to a certificate file.
privateKeyPath
Type: System..::..String
Path to the private key file.
privateKeyPassword
Type: System..::..String
Private key password.

Return Value

A certificate.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also