-m --sslmode
-m or --sslmode specifies the policy for making SSL connections to the server.
-m or --sslmode specifies the policy for making SSL connections to the server. Options are verify-full, verify-ca require, prefer, and disable. You can also set the VSQL_SSLMODE variable to achieve the same effect. If the variable is set, the command-line option overrides it.
For information about these modes, see Configuring TLS for ODBC Clients.
Certificate files for mutual TLS
To use mutual TLS (verify-ca or verify-full), place the following files in the ~/.vsql/ directory before connecting:
| File | Description |
|---|---|
root.crt |
CA certificate used to verify the server's certificate. |
client.crt |
Client certificate presented to the server for authentication. |
client.key |
Private key corresponding to the client certificate. |
Note
On Linux and macOS, these files must have permissions set to600.