public EventStoreBuilder useSslConnection(String certificateCommonName){
  settingsBuilder.sslSettings(SslSettings.trustCertificateCN(certificateCommonName));
  return this;
}

public EventStoreBuilder useSslConnection ( String certificateCommonName ) { settingsBuilder . sslSettings ( SslSettings . trustCertificateCN ( certificateCommonName ) ) ; return this ; }
enables connection encryption using ssl and trusts an x . 509 server certificate whose common name ( cn ) matches .
