I have installed yubikey-piv-tools via brew.
using my Yubikey 4 works for e.g. SSH login but get before being prompted for PIN for each installed PIV certificate a:
C_GetAttributeValue failed: 6
e.g. example:
Code:
% ssh-keygen -D /usr/local/lib/libykcs11.dylib -e
C_GetAttributeValue failed: 6
[...]
using opensc-pkcs11.so doesn't show the error and works similar, however can't use the extra slots.
what struggles me, however is that openvpn doesn't show any certs (while opensc does):
Code:
% openvpn --show-pkcs11-ids /usr/local/lib/libykcs11.dylib
The following objects are available for use.
Each object shown below may be used as parameter to
--pkcs11-id option please remember to use single quote mark.
%
It is a little suprising that opensc works while Yubikey's own implementation with its own device fails... I would have expected the opposite way.
The reasons why I wanted to use ykcs11 rather opensc one is the fact I can use the "retired" slots for openvpn and I do not consume the rare NIST Slots (9x) for that. Did anyone get openvpn going on macOS with ykcs11. Anything to debug that? Buggy code?
Cheers,
Yze