mtxr / vscode-sqltools

Database management for VSCode

Home Page:https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MySql requiring self-signed cert when enableSsl is disabled/false

Fludem opened this issue · comments

Describe the bug
If you save a MySql connection with SSL enabled it will create the ssl object.
Connection fails as passing empty object and can't find self signed cert.
Disabling Mysql afterwards doesn't remove the ssl object which causes connections to fail with same issue.

To Reproduce
Steps to reproduce the behavior:

  1. Create Connection
  2. Select MySql
  3. Fill out valid details and tick enablessl
  4. Save and try connect
  5. See Failure
  6. Disable SSL and Save
  7. See Failure

Expected behavior
Shouldn't pass empty object so connection succeeds.
Disabling SSL should remove the empty object
Connection should work

Desktop (please complete the following information):

  • SQLTools Version [e.g. v0.28.1]
  • VS Code Version: [e.g 1.85.1]
  • Driver: MySql / Maria

Additional context
Add any other context about the problem here.