Problem connecting to CockroachDB....
Hi,
- DBeaver 5.1.5.201808130751 Community Edition
On my Windows 10 system I followed the instructions to spin up a 3 node cluster in secure mode (using their SSL generation option not OpenSSL) https://www.cockroachlabs.com/docs/stable/secure-a-cluster.html which ultimately means I am looking to use the following connection string:
postgresql://root@localhost:26257?sslcert=certs%5Cclient.root.crt&sslkey=certs%5Cclient.root.key&sslmode=verify-full&sslrootcert=certs%5Cca.crt
However after configuring a PostgreSQL connection as I think they should be I get:

Any suggestions on how to get this working?
Will check this in #4140
Try to install SSHJ extension, it will setup advanced security libraries.
However I can't initiate SSL connection to Cockroach.
-
I've configured certificates:

-
Set default connection settings:

-
When I connect I see error
The server requested password-based authentication, but no password was provided.Just our of curiosity I've tried to set any password and now I see errorERROR: user root must use certificate authentication instead of password authentication. So I stuck here. Once I enable SSL it complains that no password specified. Once I specify password itr says that I can't use password in secure mode.
The original error reported (Could not read SSL key file ...) is due to the fact that JDBC wants PKCS#8 keys. You can convert PEM-encoded keys using:
openssl pkcs8 -topk8 -inform PEM -outform DER -in client.root.key -out client.root.pk8 -nocrypt
Having had this same issue I can confirm that creating the .pk8 key file and connecting as above but with that instead of the .key file does indeed work.