When managing certificates, you do not need to type a certificate password or specify the password file. You can simply pass the password as -W argument. Example:
echo "password22" > /tmp/certdbpwd echo "password22" > /tmp/certdbpwd # ./msgcert list-certs -W /tmp/certdbpwd |