WinCryptSSHAgent icon indicating copy to clipboard operation
WinCryptSSHAgent copied to clipboard

Cannot authenticate SSH after any GPG operations

Open hfziu opened this issue 4 years ago • 2 comments

Hi,

I'm using a YubiKey 5 NFC with WinCryptSSHAgent. I've generated a certificate in PIV certificate Slot 9a: image

and it works well with WinSSH. However, after each time I perform any GPG operation (e.g., gpg --card-status, gpg --sign, etc.), I can no longer use my YubiKey with WinCryptSSHAgent to authenticate SSH connections: "The smart card cannot perform the requested operation or the operation requires a different smart card." image

Seems like that once I've performed any GPG operation, Windows will no longer read the PIV certificates stored in YubiKey until replugging.

Any idea or solution on this issue? Thanks a lot!

hfziu avatar Aug 30 '21 05:08 hfziu

Append: seems like the same issue with #1 and #10

OpenPGP conflicts with WinCryptSSHAgent

hfziu avatar Aug 30 '21 06:08 hfziu

AFAIK this is common gpg issue, it exclusively locks tokens. It was reproduced in my environment on ubuntu 18 host.

akosyrev avatar Sep 17 '21 07:09 akosyrev