ssl-mode options is not valid
See original GitHub issueI’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:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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@sidorares updated and checked that same is take place for this library on its own.