antares icon indicating copy to clipboard operation
antares copied to clipboard

🐞 Error when connect to CockroachDB

Open yanecc opened this issue 10 months ago • 5 comments

Describe the bug When try to connect to the CockroachDB database, I received an error message: Error: server requires encryption.

Expected behavior Set PostgreSQL as the database type and enable SSL, the CockroachDB connection should be valid.

Application:

  • App version 0.7.22
  • OS name: Windows 11
  • DB name CockroachDB

yanecc avatar Apr 06 '24 17:04 yanecc

Did you provided proper key, cert and other stuffs?

Fabio286 avatar Jun 20 '24 14:06 Fabio286

I just selected the database type as PostgreSQL and then entered the connection string provided by CockroachDB (like postgresql://user:passwd@host:port/dbname?sslmode=verify-full). When I enabled the SSL setting, imported the CA Cert and tested the connection, it was turned off and I got a pop-up message: "Error: server requires encryption." However, when I use the connection string in other database tools (such as DataGrip, Beekeeper Studio), I was able to connect successfully.

yanecc avatar Jun 20 '24 15:06 yanecc

Can you try to add to the connection string ssl=true?

Fabio286 avatar Jun 20 '24 16:06 Fabio286

Well, it works fine right now.

yanecc avatar Jun 20 '24 16:06 yanecc

Thank you for trying. A fix will come on next update.

Fabio286 avatar Jun 20 '24 17:06 Fabio286