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

How can I add SSL options for Cockroach DB ? #1544

Closed
seguidor777 opened this issue Nov 16, 2021 · 1 comment
Closed

How can I add SSL options for Cockroach DB ? #1544

seguidor777 opened this issue Nov 16, 2021 · 1 comment

Comments

@seguidor777
Copy link

seguidor777 commented Nov 16, 2021

Hi,

I'm trying to use this connection string
DATABASE_URL=postgres://root@10.43.137.84:26257/devices?sslmode=verify-ca&sslrootcert=/cockroach-certs/ca.crt&sslcert=/cockroach-certs/client.root.crt&sslkey=/cockroach-certs/client.root.key

However when I run the sqlx CLI it returns this message:
error: error returned from database: password authentication failed for user root

Can you please let me know how could I add those options to authenticate using the certs?

@seguidor777
Copy link
Author

Closing since it seems to be a WIP for this
#1166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant