When configuring your database connection in database.yml, you can specify the ssl_mode. The adapter supports the following modes, which map to Trilogy::SSL_* constants:
SSL_MODE_DISABLED: No SSL used.SSL_MODE_PREFERRED: SSL is preferred but not required.SSL_MODE_REQUIRED: SSL is required, but verification is not performed.SSL_MODE_VERIFY_CA: SSL is required and the CA certificate is verified.SSL_MODE_VERIFY_IDENTITY: SSL is required, the CA is verified, and the server identity is verified.
You can provide these as strings (e.g., ssl_mode: VERIFY_CA) or as integers.
da-adapter:
adapter: trilogy
host: your-host
database: your-db
username: your-user
password: your-password
ssl_mode: VERIFY_CA