Open msauton opened 3 years ago
Hi,
Not sure if you ever resolved this but I encountered the same issue and managed to get past it by adding the location of the YubiHSM configuration file to /usr/share/pki/etc/pki.conf:
YUBIHSM_PKCS11_CONF=/etc/yubihsm_pkcs11.conf
export YUBIHSM_PKCS11_CONF
pkispawn fails to create a CA with a YubiHSM, in JSS org.mozilla.jss.NoSuchTokenException: No such token: YubiHSM
but the device is accessible by NSS.
details
F33 yubihsm-connector-2.2.0-2.fc33.x86_64 yubihsm-shell-2.0.3-1.fc33.x86_64
Setting up PKI:
tried to attach jdb with a break point on getTokenByName frm ./jss/org/mozilla/jss/CryptoManager.java but could not connect at thje right moment during pkispawn, there is a conneciton reset once, then can connect a second time, but the application just exited on the exception,
tried several times, but could not attach:
jdb -attach 8000 -sourcepath /root/src.dir/jss/ stop at org.mozilla.jss.getTokenByName:170
(edit: ascheel June 6th, 2022 for formatting)