question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ssl-mode options is not valid

See original GitHub issue

I’m using following command to connect to mysql:

mysql -u user -h host -p --ssl-cert client-cert.pem --ssl-mode=REQUIRED --ssl-key client-key.pem

In mysql nodejs driver there no ssl-mode option, when I tried to specify just key and cert I got access denied from mysql, and when I tried to put options to connection URL (accodring to this ) I got error saying that ssl-mode, ssl-key and ssl-cert options are not valid.

Is there any other way to achieve this? Or any plan to support ssl-mode option?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sidorarescommented, Mar 2, 2020

@Cherviakov according to this example client certs work just fine with this library - https://techsparx.com/software-development/docker/damp/mysql-ssl-connection.html

just pass cert: fs.readFileSync(__dirname + '/certs/client-cert.pem') in ssl options

0reactions
Cherviakovcommented, Mar 3, 2020

@sidorares updated and checked that same is take place for this library on its own.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Postgres SSLMode Value "require" Invalid When SSL Support ...
The queries run if I connect to a different database on a remote server - but fail from my local database. How can...
Read more >
Add SSLmode parameter to postgresql connector #11527
This database requires SSL connection. The import is failing with Unknown error. After a debugging process thanks to @jgoizueta I have learnt ...
Read more >
Documentation: 15: 34.19. SSL Support - PostgreSQL
By default, PostgreSQL will not perform any verification of the server certificate. This means that it is possible to spoof the server identity...
Read more >
4.2.3 Command Options for Connecting to the Server
The following table shows the permissible --protocol option values and indicates the applicable platforms for each value. The values are not case-sensitive.
Read more >
Solved: Invalid SSLMODE postgres bulk insert connection
I have tried configuring the dsn with every available ssl option (disable, allow, prefer, require, verify-ca, verify-full) the first four of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found