Skip to content

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

@seguidor777

Description

@seguidor777

Hi,

I'm trying to use this connection string
DATABASE_URL=postgres://[email protected]: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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions