Hi, guys, just a question about SSL connection between java client and couchbase server.
According to the official encryption instruction (http://developer.couchbase.com/documentation/server/4.0/sdks/java-2.2/managing-connections.html), I set up my code but I get an unwanted result.
An exception has been thrown out say “No trusted certificate found”
Here is my connection set up. Can anyone pitch some ideas?
CouchbaseEnvironment environment = DefaultCouchbaseEnvironment .builder() .sslEnabled(true) .sslKeystoreFile("C:\\Program Files\\Java\\jdk1.7.0_75\\jre\\lib\\security\\cacerts") .sslKeystorePassword("changeit") .build();
The server side is 4.0 enterprise edition, and client side is JAVA SDK 2.1