many-potato-72695
10/30/2022, 2:32 AMkratos migrate sql
with the connection string <cockroach://user1:password@192.168.xx.xxx:5432/auth?sslmode=verify-full>
.
I am getting the below error
WARN[2022-10-29T11:48:49-07:00] Unable to open database, retrying. audience=application error=map[message:could not open database connection: failed to connect to `host=192.168.85.118 user=user1 database=auth`: failed to write startup message (x509: certificate is valid for 127.0.0.1, not <http://192.168.xx.xxx|192.168.xx.xxx>)] service_name=Ory Kratos service_version=master
Please let me know how to handle this. I tested other ways to connect to the Cockroachdb securely (golang code, psql) and it works.
Update 1: with dns set to <cockroach://user1:password@192.168.xx.xxx:5432/auth>
without sslmode it works.red-machine-69654
10/30/2022, 4:59 PMmany-potato-72695
10/31/2022, 4:10 AMsslmode
is disabled.
I think the certificate is preventing and not sure how to fix it.
For time being, the sslmode is kept offrefined-kangaroo-48640
11/01/2022, 1:08 PMcertificate is valid for 127.0.0.1, not <http://192.168.xx.xxx|192.168.xx.xxx>
CockroachDB is presenting a certificate for 127.0.0.1, but you are connecting to 192.168.xx.xx.refined-kangaroo-48640
11/01/2022, 1:08 PMrefined-kangaroo-48640
11/01/2022, 1:10 PMrefined-kangaroo-48640
11/01/2022, 1:10 PMmany-potato-72695
11/01/2022, 10:22 PM