Open nelsonbrabra opened 7 years ago
I am going to assume that you want to have YCSB authenticate to the server via the client x.509 certificate as part of the TLS connection.
For the MongoDB driver you need to add options to the connection string/uri and add system properties for the Client TLS certificate.
You turn on TLS with the connection via the TLS URI option.
The PKI authentication is via the Authentication URI options. Specifically, use the authSource=$external
and authMechanism=MONGODB-X509
.
The client certificate is passed as a system property via the standard JSSE System Properties. Specifically:
I followed these instructions to configure mongodb for tsl: https://docs.mongodb.com/manual/tutorial/configure-ssl/
made the self-signed certificate and ran mongodb with it following the tips over there, but then im unable to connect with the mongod with YCSB client because i can find a way to enable tsl connection in the client. im really a newbie in this area so im probably missing something really obvious
Have you tried adding ssl=true to the MongoDB URI you pass on the YCSB command line?
I have tried ssl=true. But still no success. I am able to connect using the mongo shell and passing the PEMkeyFile and CAFile details. But how to pass these certificates using mongodb url?
Facing the same issue
Was this ever resolved? Connecting to Couchbase Cloud needs SSL
I've read all readme files but i cant seem to find how to connect with the database using an OpenSSL certificate either with Mongodb or Couchbase2