hello Raphael - here are my steps to reproduce the situation:
mkdir ./path-to-ca-key/;
cockroach cert create-ca --certs-dir=./path-to-certs-directory/ --ca-key=./path-to-ca-key/ca-key ;
cockroach cert create-node {ipaddrInternal} {ipaddrExternal} --certs-dir=./path-to-certs-directory/ --ca-key=./path-to-ca-key/ca-key ;
cockroach cert create-client root --certs-dir=./path-to-certs-directory/ --ca-key=./path-to-ca-key/ca-key ;
cockroach cert create-client markedwards --certs-dir=./path-to-certs-directory/ --ca-key=./path-to-ca-key/ca-key ;
cockroach start --certs-dir=./path-to-certs-directory/ --http-host=localhost --background ;
cockroach sql --user=root -e ‘CREATE DATABASE bank;’ --certs-dir=./path-to-certs-directory/ ;
cockroach sql --user=root -e “CREATE USER markedwards WITH PASSWORD ‘aaaaaa’;” --certs-dir=./path-to-certs-directory/ ;
cockroach sql --user=root -e ‘GRANT ALL ON DATABASE bank TO markedwards;’ --certs-dir=./path-to-certs-directory/ ;
cockroach node status --certs-dir=./path-to-certs-directory/ ;
cockroach user set markedwards --certs-dir=./certs --password ;
aaaaaa
aaaaaa
now on the same server, i do the following:
cockroach sql --user=markedwards --certs-dir=./path-to-certs-directory --database=bank;
this is not prompting me to enter the password.