Skip to content

Commit c655fae

Browse files
Choose your own Cipher Suite Adventure!
DOC-12599 Searching down the back of the sofa for the remote control, I found the long forgotten https://jira.issues.couchbase.com/browse/DOC-12599 Here it is re-presented, for 3.10, with @dnault 's comments incorporated.
1 parent 736467c commit c655fae

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

modules/howtos/pages/managing-connections.adoc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,35 @@ E.....@.@.............+....Z.'yZ..#........
237237
====
238238

239239

240+
=== Choosing your Cipher Suite
241+
242+
If your organization's security policy requires using specific TLS cipher suites,
243+
you can specify which ciphers to use with
244+
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].
245+
246+
For example:
247+
248+
[source,java]
249+
----
250+
Cluster cluster = Cluster.connect(
251+
connectionString,
252+
ClusterOptions.clusterOptions(username, password)
253+
.environment(env -> env
254+
.securityConfig(sec -> sec
255+
.ciphers(List.of(
256+
// TLS 1.3 cipher suites supported by
257+
// Java and Couchbase Server.
258+
"TLS_AES_128_GCM_SHA256",
259+
"TLS_AES_256_GCM_SHA384"
260+
)))));
261+
----
262+
263+
To check which ciphers are available on a self-managed Couchbase Server installation, run:
264+
265+
[source,console]
266+
----
267+
/opt/couchbase/bin/couchbase-cli setting-security -c localhost -u Administrator -p password --get
268+
----
240269

241270

242271
== Quarkus Java Extension

0 commit comments

Comments
 (0)