Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions modules/howtos/pages/managing-connections.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,35 @@ E.....@.@.............+....Z.'yZ..#........
====


=== Choosing your Cipher Suite

If your organization's security policy requires using specific TLS cipher suites,
you can specify which ciphers to use with
link:++https://docs.couchbase.com/sdk-api/couchbase-core-io/com/couchbase/client/core/env/SecurityConfig.Builder.html#ciphers(java.util.List)++[the `security.ciphers` client setting].

For example:

[source,java]
----
Cluster cluster = Cluster.connect(
connectionString,
ClusterOptions.clusterOptions(username, password)
.environment(env -> env
.securityConfig(sec -> sec
.ciphers(List.of(
// TLS 1.3 cipher suites supported by
// Java and Couchbase Server.
"TLS_AES_128_GCM_SHA256",
"TLS_AES_256_GCM_SHA384"
)))));
----

To check which ciphers are available on a self-managed Couchbase Server installation, run:

[source,console]
----
/opt/couchbase/bin/couchbase-cli setting-security -c localhost -u Administrator -p password --get
----


== Quarkus Java Extension
Expand Down
Loading