Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid ssl option but still DB connection working fine #2673

Open
swapnil-raj-kgs opened this issue May 13, 2024 · 1 comment
Open

Invalid ssl option but still DB connection working fine #2673

swapnil-raj-kgs opened this issue May 13, 2024 · 1 comment

Comments

@swapnil-raj-kgs
Copy link

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?

@wellwelwel
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants