I am trying to create a new veracrypt container on the command line in a completely interactive fashion. To make things more complicated, I need to store a keyfile on a PKCS#11 token.
From what I understood, I first need to import the keyfile to the token before creating the volume. I have tried the commands
veracrypt --text --import-token-keyfiles --token-lib=/usr/lib/x86_64-linux-gnu/opensc-pkcs11.so --new-keyfiles=/tmp/keyfile.dat
and
veracrypt --text --import-token-keyfiles --token-lib=/usr/lib/x86_64-linux-gnu/opensc-pkcs11.so --keyfiles=/tmp/keyfile.dat
But both commands interactively ask for the keyfile
Enter keyfile [none]: