Table of Contents

Method GetCertificateAsync

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

GetCertificateAsync()

Returns the certificate to use for new connections. Must be thread-safe. The driver will call this method every time it makes a new connection.

ValueTask<X509Certificate> GetCertificateAsync()

Returns

ValueTask<X509Certificate>

The certificate to use for new connections.

Remarks

If a new certificate is returned, existing connections using the previous certificate will not be affected. The new certificate will only be used for new connections.

The work done in this method counts towards the connectionAcquisitionTimeout. Should fetching the certificate be particularly slow, it might be necessary to increase the timeout.

This method must be thread safe.