Red Hat Bugzilla – Bug 860655
pkcs11-tool refuses to read stdin if stdout is redirected
Last modified: 2012-09-26 08:02:03 EDT
Description of problem:
The following works as expected
pkcs11-tool --module ... -I -l
Please enter User PIN:
but with stdout redirected pkcs11-tool refuses to read from stdin
pkcs11-tool --module ... -I -l > /dev/null
error: No PIN entered, exiting!
It would be helpful to have this working in scripts to check a user supplied password silently if ok or error out if invalid password.
Version-Release number of selected component (if applicable):