Reputation: 593
Is it possible to configure spring-data-couchbase to connect via SSL?
I have found documentation for how to do this via the SDK, but not in spring-data-couchbase 3.1.4-RELEASE
Upvotes: 3
Views: 588
Reputation: 5652
I think the way to do this is to extend AbstractCouchbaseConfiguration
with your own configuration, and then Override the methods in that class with the SSL config as per the SDK documentation. For example:
@Configuration
public class CouchbaseConfig extends AbstractCouchbaseConfiguration {
@Override
public CouchbaseEnvironment couchbaseEnvironment() {
return DefaultCouchbaseEnvironment
.builder()
.sslEnabled(true)
.sslKeystoreFile("/path/tokeystore")
.sslKeystorePassword("password")
.build();
}
}
Upvotes: 2