Validates a certificate.

Namespace:  Rebex.Net
Assembly:  Rebex.Networking (in Rebex.Networking.dll)

Syntax

Visual Basic
Function Verify ( _
	socket As TlsSocket, _
	commonName As String, _
	certificateChain As CertificateChain _
) As TlsCertificateAcceptance
C#
TlsCertificateAcceptance Verify(
	TlsSocket socket,
	string commonName,
	CertificateChain certificateChain
)

Parameters

socket
Type: Rebex.Net..::..TlsSocket
The socket that needs the certificate verification.
commonName
Type: System..::..String
Common name of the server.
certificateChain
Type: Rebex.Security.Certificates..::..CertificateChain
Certificate chain to be validated.

Return Value

True to accept the chain, False to reject.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also