'how to set ssl-mode in mysql library on nodejs ( in other platforms is called tls=skip-verify)

I am using https://www.npmjs.com/package/mysql to connect to a db (also tried https://www.npmjs.com/package/mysql2)

I need to be able to set ssl-mode like described here: https://dev.mysql.com/doc/refman/5.7/en/connection-options.html#option_general_ssl-mode

is this possible ?

in other platforms is called tls=skip-verify

I tried already with rejectUnauthorize: false but didnt work



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source