Cockroach cert issues on server


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 to create certificate.


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


You should follow the syntax here:

You should have a certificate for every client machine.