### Description Applies to `db_mysql` built with mariadb-connector-c; TLS is not working
Option 1: configure mariadb server to use TLS (optional) Option 2: configure mariadb server to use TLS (mandatory)
### Troubleshooting 1. wireshark inspect the pcap dump of traffic to :3306 and look for ClientHello 2. gdb main kamailio process and set breakpoint at `SSL_new`
#### Reproduction 1. Option 1: server advertises SSL, but db_mysql will always choose plain 3. Option 2: server advertises SSL(and requires SSL), connection will fail
### Additional Information #### Kamailio version * master
Current WIP to enable TLS on https://github.com/kamailio/kamailio/pull/3734.
Use existing `opt_ssl_mode` and map as follows.:
1. 0(off), 1(SSL_MODE_DISABLED): mariadb-connector-c defaults 2. 2(SSL_MODE_PREFERRED) 3(SSL_MODE_REQUIRED) 4(SSL_MODE_VERIFY_CA): `MYSQL_OPT_SSL_ENFORCE` 3. 5(SSL_MODE_VERIFY_IDENTITY): `MYSQL_OTP_SSL_VERIFY_SERVER_CERT`
Closed #3735 as completed.