node-mysql 2.17.1
Ubuntu 18.04
Under Node 8, I'm able to use node-mysql to connect to an Amazon RDS instance.
Under Node 12, the same code errors out with:
Error: 139907407202176:error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol:../deps/openssl/openssl/ssl/statem/statem_lib.c:1929:
--------------------
at Protocol._enqueue (/var/h/deploy/airtable/node-mysql-test/node_modules/mysql/lib/protocol/Protocol.js:144:48)
at Protocol.handshake (/var/h/deploy/airtable/node-mysql-test/node_modules/mysql/lib/protocol/Protocol.js:51:23)
The code works if I run Node with "--tls-min-v1.0". However, I don't want to change the global TLS settings; I'd rather just change the settings for the specific connections.
(BTW, I'm sending this to the mailing list because the GitHub issue tracker told me: "An owner of this repository has limited the ability to open an issue to users that have contributed to this repository in the past." It would be nice to be able to file things like this directly on the issue tracker.)