Table of Contents

Method ValidateServerCertificate

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

ValidateServerCertificate(Uri, X509Certificate2, X509Chain, SslPolicyErrors)

Returns whether the endpoint should be trusted or not.

public abstract bool ValidateServerCertificate(Uri uri, X509Certificate2 certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)

Parameters

uri Uri

The uri towards which we're establishing connection

certificate X509Certificate2

The certificate presented by the other endpoint

chain X509Chain

The certificate chain that was built during the handshake

sslPolicyErrors SslPolicyErrors

The initial policy errors that shows what problems were detected during the handshake

Returns

bool

true if the connection should be established, false otherwise