@@ -95,6 +95,12 @@ Each supported scheme maps to a particular :class:`neo4j.Driver` subclass that i
9595| neo4j+s | :ref: `neo4j-driver-ref ` with encryption (accepts only certificates signed by a certificate authority), full certificate checks. |
9696+------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
9797
98+
99+ .. note ::
100+
101+ See also :ref: `encryption-config-note-ref ` to understand how the URI scheme relates to other encryption configuration options.
102+
103+
98104.. note ::
99105
100106 See https://neo4j.com/docs/operations-manual/current/configuration/ports/ for Neo4j ports.
@@ -413,9 +419,12 @@ Additional configuration can be provided via the :class:`neo4j.Driver` construct
413419+ :ref: `user-agent-ref `
414420+ :ref: `driver-notifications-min-severity-ref `
415421+ :ref: `driver-notifications-disabled-categories-ref `
422+ + :ref: `driver-notifications-disabled-classifications-ref `
416423+ :ref: `driver-warn-notification-severity-ref `
417424+ :ref: `telemetry-disabled-ref `
418425
426+ :ref: `encryption-config-note-ref `
427+
419428
420429.. _connection-acquisition-timeout-ref :
421430
@@ -594,6 +603,9 @@ For example:
594603---------------
595604Specify a custom SSL context to use for wrapping connections.
596605
606+ The driver offers other, easier APIs for common encryption configurations (see :ref: `encryption-config-note-ref `).
607+ It's likely that your use-case doesn't actually require this options.
608+
597609This setting is only available for URI schemes ``bolt:// `` and ``neo4j:// `` (:ref: `uri-ref `).
598610
599611If given, ``encrypted ``, ``trusted_certificates ``, and ``client_certificate `` have no effect.
@@ -794,6 +806,23 @@ The driver transmits the following information:
794806.. versionadded :: 5.13
795807
796808
809+ .. _encryption-config-note-ref :
810+
811+ Note on Encryption Configuration
812+ --------------------------------
813+ There are different *mutually exclusive * ways of configuring TLS/SSL encryption behavior of the driver:
814+
815+ * Use a URI scheme ending in ``+s ``. This auto-configures the driver to use TLS and only trust system CAs.
816+ * Use a URI scheme ending in ``+ssc ``. This auto-configures the driver to use TLS and trust any certificate.
817+ * Use a URI scheme without suffix (i.e. ``neo4j:// `` or ``bolt:// ``) and one of the following mutually exclusive options:
818+
819+ * set :ref: `encrypted-ref ` to ``True `` and optionally configure :ref: `trusted-certificates-ref ` and/or
820+ :ref: `client-certificate-ref ` to enable TLS with custom security settings.
821+ * or set :ref: `ssl-context-ref ` to gain full control (and responsibility) over the TLS configuration.
822+ * or set ``encrypted=False `` (default) to disable TLS.
823+
824+
825+
797826Driver Object Lifetime
798827======================
799828
0 commit comments