File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments