Connect cbq to ssl enabled Couchbase Server

Hi All,

Could someone please share the steps how we can import certificate from CA authority and connect to the same couchbase server which is SSL enabled via cbq utility.

Thanks,
Debasis

I’d suggest you start here:

https://docs.couchbase.com/server/current/manage/manage-security/manage-certificates.html

There are sections with examples (that you can basically copy-n-paste) on configuring both server and client certificates.

Once configured, the cbq invocation will be something like:

cbq -u user -p pass -cacert /opt/couchbase/servercertfiles/ca.pem\
 -cert /opt/couchbase/servercertfiles/clientcertfiles/default.pem\
 -key /opt/couchbase/servercertfiles/clientcertfiles/default.key\
 -e couchbases://localhost

HTH.

Thanks @dh for your valuable input.