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

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

Syntax

Visual Basic
Public Shared Function LoadDerWithKey ( _
	certificateStream As Stream, _
	privateKeyStream As Stream, _
	privateKeyPassword As String _
) As Certificate
C#
public static Certificate LoadDerWithKey(
	Stream certificateStream,
	Stream privateKeyStream,
	string privateKeyPassword
)

Parameters

certificateStream
Type: System.IO..::..Stream
Stream with the certificate.
privateKeyStream
Type: System.IO..::..Stream
Stream with the private key.
privateKeyPassword
Type: System..::..String
Private key password.

Return Value

A certificate.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also