Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: MS SQL Server connection error (KEY_USAGE_BIT_INCORRECT) #795

Open
keskinonur opened this issue May 20, 2024 · 0 comments
Open

BUG: MS SQL Server connection error (KEY_USAGE_BIT_INCORRECT) #795

keskinonur opened this issue May 20, 2024 · 0 comments
Labels
bug Something isn't working mssql Microsoft SQL Server

Comments

@keskinonur
Copy link

Describe the bug
After the 5.2.8 update, I am unable to connect MS SQL Server with "Trust Server Certificate" and "Use SSL" checked.

To Reproduce
Steps to reproduce the behavior:

  1. Have a SQL Server with encrypted connection
  2. Create a connection with server details (IP, port, user, password)
  3. Check both "Trust Server Certificate" (In General tab) and "Use SSL" (In SSL tab).

Expected behavior
Successful database connection.

Error Detail

Error: Failed to connect to <<SERVER_IP>>:<<SERVER_PORT>> - 1133874059840:error:1000012e:SSL routines:OPENSSL_internal:KEY_USAGE_BIT_INCORRECT:../../third_party/boringssl/src/ssl/ssl_cert.cc:431:

    at q.socketError (/Applications/DbGate.app/Contents/Resources/app.asar/packages/plugins/dbgate-plugin-mssql/dist/backend.js:2:910128)
    at /Applications/DbGate.app/Contents/Resources/app.asar/packages/plugins/dbgate-plugin-mssql/dist/backend.js:2:925154
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Error JSON: {
  "code": "ESOCKET"
}

Connection: {
  "server": "***",
  "engine": "mssql@dbgate-plugin-mssql",
  "user": "***",
  "password": "***",
  "trustServerCertificate": true,
  "isReadOnly": false,
  "defaultDatabase": "***",
  "connectionColor": "***",
  "useSsl": true,
  "_id": "***",
  "unsaved": false,
  "sshMode": "userPassword",
  "sshKeyfile": "***"
}

Platform: darwin

Version Information:

  • OS: macOS
  • App Version: 5.2.8
  • Install source: Official DMG from website
  • Type - Desktop App
  • Database engine: SQL Server
@ProjectInfinity ProjectInfinity added the mssql Microsoft SQL Server label May 24, 2024
@janproch janproch added the bug Something isn't working label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mssql Microsoft SQL Server
Projects
None yet
Development

No branches or pull requests

3 participants