Open sunknudsen opened 3 years ago
The reason repeated invocations to config
may fail is that it requires the YubiKey to reboot, which in turn causes the OS to have to re-enumerate the device, and sometimes takes a while.
You can repeat the -e/--enable
option, as well as combine it with -d/--disable
(which can also be repeated), so you can do things like ykman config usb --enable otp --enable u2f
or ykman config usb -d otp -e u2f -e fido2 -d piv
.
@dainnilsson I didn’t know we could repeat --enable
and --disable
arguments and mix them. Thanks for sharing! Amazing!
Curious, would it be possible to have ykman
optionally wait for YubiKey reboot before terminating (perhaps using --wait
argument).
This would be helpful when using both ykman config nfc
and ykman config usb
commands one after the other.
We've just released ykman CLI 4.0.7 which should handle this better. I don't think you should have any problems invoking those commands back to back in this version.
Thanks for heads-up @dainnilsson!
@dainnilsson Release has not been published to https://developers.yubico.com/yubikey-manager-qt/Releases/ right?
That's correct. The update is to the yubikey-manager
project (CLI), not this one (GUI). Unfortunately I don't think we'll have a new release of the GUI until late October.
Is it possible to enable or disable multiple NFC or USB interfaces at once using
ykman config nfc
orykman config usb
?When running
ykman config usb --enable
multiple times in a row,Error: No YubiKey detected!
is thrown.I tried following and neither worked.
“Feature” would be amazing to increase speed of scripted YubiKey provisioning given
sleep
has to be used otherwise (unless I am missing something).