Yubico Forum
https://forum.yubico.com/

[QUESTION] Card error after installing YubiKey PIV Manager
https://forum.yubico.com/viewtopic.php?f=26&t=2483
Page 1 of 1

Author:  jamesM [ Wed Nov 09, 2016 4:11 pm ]
Post subject:  [QUESTION] Card error after installing YubiKey PIV Manager

Hey all,

today I installed the YubiKey PIV Manager (1.4.1) on my Mac (Sierra). After the installation, I was not longer able to use my GPG combined with the YubiKey.
Checking my card status runs into the following error:

Code:
gpg --card-status
gpg: selecting openpgp failed: Card error
gpg: OpenPGP Karte ist nicht vorhanden: Card error


When checking the Mac console, I can see lots of entries of the process com.apple.WebKit.Networking with subsystem com.apple.securityd.
Code:
skipping upgrade for PIV-Yubico PIV Authentication due to guid mismatch


The YubiKey NEO Manager works fine. It finds my YubiKey and shows me, that the connection mode
- OTP
- CCID
- U2F
is checked.

Another important note is: If I plugin my YubiKey to a Linux system, everything is fine. So it seems to be a specific Mac problem.

I already checked this forum/web for some solutions, but wasn´t successfully so far. I don´t have an idea how to fix this.

UPDATE
Works again. What did I change? Because I installed the YubiKey PIV Manager (1.4.1) just for testing, I removed the created authentication and keyManagement certificates and restarted the machine. After I executed gpg --card-status I got the same error (Card error). I plugged in another YubiKey, executed gpg --card-status again which printed some information - as expected. Afterwards I plugged in my YubiKey and it worked again. I have no explanation for this.

Nontheless I´m very interested for the reason why I don´t want to close this ticket.

Author:  Asturaz [ Tue May 16, 2017 10:41 pm ]
Post subject:  Re: [QUESTION] Card error after installing YubiKey PIV Manag

I have the same issue, but without any solution.
The same root cause.

Author:  Asturaz [ Wed May 17, 2017 6:03 pm ]
Post subject:  Re: [QUESTION] Card error after installing YubiKey PIV Manag

This is how I did.

1. Delete the certificates with PIV Manager

2. Open up your Terminal
type
Quote:
sudo rm -rf /var/db/TokenCache/*


done!
Pull out the Yubikey and put it back, try
Code:
gpg --card-status

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/