Skip to content

Commit

Permalink
update ssl docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wetted committed Jan 25, 2024
1 parent 4364afa commit 5ff9a9e
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions src/main/docs/guide/ssl.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The Cassandra DataStax Java Driver includes https://docs.datastax.com/en/developer/java-driver/latest/manual/core/ssl/#driver-configuration[support for SSL], to secure traffic between the driver and Cassandra.

This an example of a configuration for Micronaut Cassandra that enables SSL connections. The relevant values are defined under the `cassandra.\*.advanced.ssl-engine-factory.*` property key and documented further in the https://docs.datastax.com/en/developer/java-driver/latest/manual/core/configuration/reference/[Datastax Configuration Reference].
This an example of additional configuration for Micronaut Cassandra that enables SSL connections. The relevant values are defined under the `cassandra.\*.advanced.ssl-engine-factory.*` property key and documented further in the https://docs.datastax.com/en/developer/java-driver/latest/manual/core/configuration/reference/[Datastax Configuration Reference].

[configuration]
----
Expand All @@ -9,25 +9,10 @@ cassandra:
advanced:
ssl-engine-factory:
class: DefaultSslEngineFactory
cipher-suites:
- TLS_RSA_WITH_AES_128_CBC_SHA
- TLS_RSA_WITH_AES_256_CBC_SHA
trust-store-path: <path to trust store>
trust-store-password: 12345
key-store-path: <path to key store>
key-store-password: 12345
metadata:
schema:
enabled: false
basic:
contact-points:
- "127.0.0.1:9042"
- "127.0.0.2:8042"
load-balancing-policy:
local-datacenter: datacenter1
truststore-path: <path to trust store>
truststore-password: <password>
----

- class: The class of the factory. `DefaultSslEngineFactory` is the default built-in implementation
- cipher-suites: cipher suites to enable when creating a connection
- trust-store and key-store properties: these are optional and if not present the system property configuration is used instead
- `class`: The class of the factory. `DefaultSslEngineFactory` is the default built-in implementation
- `truststore` properties: these are optional and if not present system property configuration is used instead

0 comments on commit 5ff9a9e

Please sign in to comment.