Table of Contents

Interface IClientCertificateProvider

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

Provides a client certificate to the driver for mutual TLS.

The driver will call GetCertificateAsync() to get the latest certificate to use for new connections.

The certificate is only used as a second factor for authentication authenticating the client. The DBMS user still needs to authenticate with an authentication token.

All implementations of this interface must be thread-safe and non-blocking for caller threads. For instance, IO operations must not be done on the calling thread.

Note that the work done in the methods of this interface count towards the connectionAcquisition. Should fetching the certificate be particularly slow, it might be necessary to increase the timeout.
public interface IClientCertificateProvider
Extension Methods

Methods

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.