OpenPGP Card V3.3 keytocard error invalid value

Gerd v. Egidy gerd.von.egidy at
Thu Nov 8 14:19:45 CET 2018

Hi Antony,

> I was previously able to move all three keys to a card. I'm now
> repeating the exercise on a fresh card.
> I'm unable to do proceed without getting an error "invalid value" from
> keytocard. The key type is set correctly on the card in card status (for
> the key that was selected), but the key is not moved. Sometimes I can
> move one of my three keys and the others stubbornly refuse to move.

what driver do you use to connect GnuPG to your card reader?

I experienced several weird communication problems when using the pcsc driver. 
They all went away after I switched to the ccid driver from GnuPG.

Kind regards,


More information about the Gnupg-users mailing list