mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.43k stars 290 forks source link

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

Closed Fludem closed 2 months ago

Fludem commented 6 months ago

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):

Additional context Add any other context about the problem here.