Yubico / yubikey-manager-qt

Cross-platform application for configuring any YubiKey over all USB interfaces.
https://developers.yubico.com/yubikey-manager-qt/
BSD 2-Clause "Simplified" License
237 stars 30 forks source link

Unknown error: APDU error: SW = 0x6f00 #340

Open vzool opened 1 year ago

vzool commented 1 year ago

I can't reset PIV it does show an error Unknown error: APDU error: SW = 0x6f00

Steps to reproduce

[Please explain what you did when the bug appeared, and if and how you have been able to reproduce it.]

Expected result

[What did you expect to happen when you did the above?]

It should reset the device normally.

Actual results and logs

[What actually happened?]

218432990-50ec09b5-56d8-4054-95bb-02c1fbca8ced

Other info

[Anything else you would like to add?]

➜  yubikey git:(master) gpg --version
gpg (GnuPG/MacGPG2) 2.2.40
libgcrypt 1.8.9
Copyright (C) 2022 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /Users/vzool/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
➜  yubikey git:(master) gpg --card-status
gpg: selecting card failed: Operation not supported by device
gpg: OpenPGP card not available: Operation not supported by device
➜  yubikey git:(master) gpg-connect-agent --hex
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
ERR 100663406 Card removed <SCD>
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
ERR 100663406 Card removed <SCD>
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
ERR 100663406 Card removed <SCD>
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
ERR 100663406 Card removed <SCD>
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
ERR 100663406 Card removed <SCD>
> 
gpg-connect-agent: signal Interrupt caught ... exiting

Screenshot 1444-07-22 at 1 37 26 PM

fdennis commented 1 year ago

Could you launch through the terminal with the --log-level DEBUG flag at the end? It should give more information. For example /Applications/YubiKey\ Manager.app/Contents/MacOS/ykman-gui --log-level DEBUG