MacGPG: gpg: selecting card failed: Operation not supported by device
Hello,
This subject is related to these discussions:
https://gpgtools.tenderapp.com/discussions/feedback/16473-gpg-selec...
https://gpgtools.tenderapp.com/discussions/feedback/16194-gpg-selec...
After rebooting my Macbook today, after a GPG tools update i started being unable to use gpg with my yubikey. I get the following errors:
gpg --card-status
gpg: selecting card failed: Operation not supported by device
gpg: OpenPGP card not available: Operation not supported by device
From all other perspectives the key looks fine: the OS recognizes it, ykman lists it, etc.
Attaching screenshot of installed version.
I'm not sure what is the problem here as I haven't tried debugging it deep enough, but from my googling this looks like a common regression in gnupg
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by John on 17 Jun, 2021 02:10 PM
Wanted to add this here, this is the log from scdaemon:
2 Posted by John on 17 Jun, 2021 02:17 PM
Hey,
You can close this discussion as solved, I was able to locate the problem.
For some reason scdaemon was looking at a USB smart card reader I have for the PGP keys. Since the reader had no card inserted it was failing and not checking the Yubikey.
Solution is to either remove the reader, or to add the following in
~/.gnupg/scdaemon.conf
:After this it started working.
Apologies for the noise.
https://support.yubico.com/hc/en-us/articles/360013714479-Troublesh...
Support Staff 3 Posted by Steve on 17 Jun, 2021 09:47 PM
Hi John,
thanks for reporting the problem and also sharing your solution. As this discussion is public maybe it will help others running into a similar situation.
Glad this is already solved for you. I'm closing this discussion. Should you need further assistance or have questions you can re-open this discussion here or open a new one any time.
Best,
Steve
Steve closed this discussion on 17 Jun, 2021 09:47 PM.