[ssl]
SSL/TLS certificate and validation settings.
[ssl]
certfile = /path/to/ca-cert.pem
validate = true
userkey = /path/to/client-key.pem
usercert = /path/to/client-cert.pem
version = TLSv1_2
Keys
| Key | Type | Default | Description |
|---|---|---|---|
certfile | string | Path to the CA certificate file for server verification. Also set via SSL_CERTFILE env var. | |
validate | boolean | true | Whether to validate the server certificate. Also set via SSL_VALIDATE env var. |
userkey | string | Path to the client private key (for mutual TLS). | |
usercert | string | Path to the client certificate (for mutual TLS). | |
version | string | Minimum TLS version (TLSv1_2, TLSv1_3). |
[certfiles] section
Map per-host certificate files:
[certfiles]
10.0.0.1 = /path/to/cert-host1.pem
10.0.0.2 = /path/to/cert-host2.pem
Enabling SSL
- Set
--sslon the command line, or - Set
factory = cqlshlib.ssl.ssl_transport_factoryin[connection]
Example: mutual TLS
[connection]
factory = cqlshlib.ssl.ssl_transport_factory
[ssl]
certfile = /etc/cassandra/ssl/ca-cert.pem
userkey = /etc/cassandra/ssl/client-key.pem
usercert = /etc/cassandra/ssl/client-cert.pem
validate = true
cqlsh-rs --ssl 10.0.0.1