Cockroach cert issues on server

Hi,

i have created security cockroah certs but when i try to run dump command

cockroach dump mydb --certs-dir=certs --user=root>mydb_dump.sql

it gives me error “cockroachdb Error: x509: certificate is valid for machinename, not localhost”

is there anything missing in my dump command ? i am following https://www.cockroachlabs.com/docs/stable/create-security-certificates.html to create certificate.

Thanks.

adding host ip in dump command working. is it ok to add ip or we need to create another certificate for localhost ?

Hey,

You should follow the syntax here: https://www.cockroachlabs.com/docs/stable/sql-dump.html

You should have a certificate for every client machine.