pkcs11 tools error "Unrecoverable error initializing PKCS#11: not found" could be more helpful
For example:
# pkcs11-keygen -b 2048 -l sample-ksk
Enter Pin:
Unrecoverable error initializing PKCS#11: not found
and
# pkcs11-list
Enter Pin:
Unrecoverable error initializing PKCS#11: not found
Unrecoverable error initializing PKCS#11: not found
The problem in this instance was eventually tracked down, not to the lack of path to the PKCS11 provider (since this had been correctly specified in the BIND build with --with-pkcs11=) but because the HSM slot ID hadn't been given using the -s option.
Would it be possible to give more clues as to where to look for the problem in this instance, or is that out of our hands?
(From Support ticket #14117 )