dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.41k stars 658 forks source link

mycli does not recognize the `--ssl-mode` flag #584

Open cypressf opened 6 years ago

cypressf commented 6 years ago

Type

mysql --ssl-mode=REQUIRED

Result: connects properly.

Type

mycli --ssl-mode=REQUIRED

Result

Error: no such option: --ssl-mode

Expected: can be configured with --ssl-mode flag like the mysql command.

tsroten commented 6 years ago

Hello @cypressf! Thanks for reaching out to us on Github 😄

Mycli isn't exactly the same as mysql, so there will be some differences that you'll notice. We do have support for SSL via these options:

  --ssl-ca PATH                 CA file in PEM format.
  --ssl-capath TEXT             CA directory.
  --ssl-cert PATH               X509 cert in PEM format.
  --ssl-key PATH                X509 key in PEM format.
  --ssl-cipher TEXT             SSL cipher to use.
  --ssl-verify-server-cert      Verify server's "Common Name" in its cert
                                against hostname used when connecting. This
                                option is disabled by default.

I don't have a quick way to test what happens if mycli can't connect over SSL -- in that scenario are you seeing mycli reconnect without SSL?