title: Connection error in AWS RDS SSL in NodeJS
body: <p>I am trying to connect to RDS through Lambda NodeJS 12.x with SSL. However I am receiving these errors:</p>
  
  <pre><code>  Error: 4506652096:error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol:
    library: 'SSL routines',
    function: 'ssl_choose_client_version',
    reason: 'unsupported protocol',
    code: 'HANDSHAKE_SSL_ERROR' 
  </code></pre>
  
  <p>I am connecting like this:</p>
  
  <pre><code>const pool  = mysql.createPool({
    connectionLimit     : 10,
    host                : 'db.cqgcxllqwqnk.eu-central-1.rds.amazonaws.com',
    ssl                 : {
      ca                : fs.readFileSync(__dirname + '/rds-ca-2019-root.pem')
    },
    user                : ‘xxxxx’,
    password            : ‘xxxxxx’,
    database            : ‘xxxxxx’,
    multipleStatements  : true
  });
  </code></pre>
  
  <p>When I connect with the certificate through MySql Workbench everything works just fine.</p>
  
  <p>Any idea on how to solve this?</p>
  
  <p>Thanks a lot!</p>