-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XCA cannot properly access a YubiHSM2 (login issues maybe) #531
Comments
Maybe related to #43 (comment)
Maybe I will find the time to look into it, soon. |
Thanks for the hints. Regarding the opensc.conf options, I am unsure if the YubiHSM PKCS#11 driver even uses the So, I would really appreciate if you could look into it, as I am a bit lost right now. |
Either the keypair hasn't been created completely (Public and private key object), see: https://hohnstaedt.de/xca-doc/html/smartcard.html#key-management-on-the-token . |
Hi, I contacted Yubico about this, and this is what they answered: Could this help with adressing this issue within XCA? |
Added login option with 3457454 |
Dear Chris, |
Auto close with 3457454 was not correct |
Dear Chris, |
I try to use XCA with a YubiHSM 2 to create certificates. However, XCA somehow cannot properly access the device via PKCS#11. I can successfully assign the PKCS#11 driver in options.
Trying Token / Manage security token gives the error message
The token 'YubiHSM' did not contain any keys or certificates.
I can, however, create a Private key on the devices with XCA and then have it in my XCA database.
When I want to create a certificate using this PK, I get the error message
Please insert card: Yubico (www.yubico.com) YubiHSM [YubiHSM] with serial: xxxx
After clicking cancel, the following message shows:
The following error occurred: Failed to find the key on the token
The log file of the YubiHSM PKCS#11 driver show the following error:
[P11 - ERR 11:41:59.204728] D:\a\yubihsm-shell\yubihsm-shell\yubihsm-shell-2.4.2\pkcs11\util_pkcs11.c:3856 (get_session): Session user not logged in
As XCA did not ask for my PIN, this seems to be the cause.
Could this be a bug in XCA? Any help would be appreciated.
The text was updated successfully, but these errors were encountered: