@@ -0,0 +1,1475 @@
+package com.couchbase.devguide;%0A%0Aimport com.couchbase.client.java.Bucket;%0Aimport com.couchbase.client.java.Cluster;%0Aimport com.couchbase.client.java.CouchbaseCluster;%0Aimport com.couchbase.client.java.env.CouchbaseEnvironment;%0Aimport com.couchbase.client.java.env.DefaultCouchbaseEnvironment;%0A%0A/**%0A * This example shows how to connect to a couchbase server EE cluster using%0A * client certificate authentication.%0A *%0A * Please make sure to follow the proper server side documentation on how to%0A * import the certifactes into the server and set up the Java keystore.%0A *%0A * https://developer.couchbase.com/documentation/server/current/security/security-x509certsintro.html%0A */%0Apublic class ConnectingCertAuth %7B%0A%0A    public static void main(String... args) %7B%0A        CouchbaseEnvironment environment = DefaultCouchbaseEnvironment.builder()%0A            .sslEnabled(true)%0A            .certAuthEnabled(true)%0A            .sslKeystoreFile(%22/path/to/keystore%22)%0A            .sslKeystorePassword(%22password%22)%0A            .sslTruststoreFile(%22/path/to/truststore%22) // you can also pack it all in just the keystore%0A            .sslTruststorePassword(%22password%22)%0A            .build();%0A%0A        Cluster cluster = CouchbaseCluster.create(environment, %22127.0.0.1%22);%0A        // IMPORTANT: do NOT call cluster.authenticate() since this is part of the cert auth%0A        Bucket bucket = cluster.openBucket(%22travel-sample%22);%0A%0A        // perform operations here...%0A        bucket.get(%22mydoc%22);%0A    %7D%0A%0A%7D%0A

Add example for client cert auth java