Skip to content

Invalid ssl option but still DB connection working fine #2673

@swapnil-raj-kgs

Description

@swapnil-raj-kgs

Hello,

We are using mysql2 version 3.9.7 and MySQL v8.0 also having RDS proxy connected to the DB instance. We are seeing the DB connection is working fine when we pass ssl : {}.

When we enabled Transport Layer Security in the RDS proxy and also turned ON require_secure_transport in the RDS parameter group we passed the ssl option as Amazon RDS at first but received the error unable to get local issuer certificate.

So we created a key in secret manager and placed the certificate in it and used it while connecting to the DB as below. Later the connection was working fine.

ssl : { ca: secret[config.certificate.caKey], rejectUnauthorized: true, verifyIdentity: true, }

But if we pass ssl : {} still the connection is working fine with above settings of TLS and SSL enabled. Can someone look into it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions