BuilderWithSSL Method (SSLOptions) |
Enables the use of SSL for the created Cluster using the provided options.
Namespace: CassandraAssembly: Cassandra (in Cassandra.dll) Version: 3.7.0
Syntax public Builder WithSSL(
SSLOptions sslOptions
)
Parameters
- sslOptions
- Type: CassandraSSLOptions
SSL options to use.
Return Value
Type:
Builderthis builder
Remarks
If SSL is enabled, the driver will not connect to any
Cassandra nodes that doesn't have SSL enabled and it is strongly
advised to enable SSL on every Cassandra node if you plan on using
SSL in the driver. Note that SSL certificate common name(CN) on Cassandra node must match Cassandra node hostname.
See Also