With gnupg 2.1, I can no longer use my OpenPGP smartcard. gnupg is able to see
the card (--card-status shows it) and --card-edit also works. However, gpg -K no
longer shows the key.
Output with gnugpg 2.0:
$ gpg -K
/home/thomas/.gnupg/secring.gpg
sec 1024D/31CFFD50 2005-09-04
uid Thomas Bächler <thomas.baechler@rwth-aachen.de>
uid Thomas Bächler <thomas.baechler@gmx.de>
ssb 2048g/648E6F29 2005-09-04
sec 4096R/8E4B1A25 2011-05-04
uid Thomas Bächler <thomas@archlinux.org>
ssb 4096R/20016BDB 2011-05-04
sec> 3072R/824B18E8 2011-11-19
Kartenseriennr. = 1234 56789012
uid Thomas Bächler (Arch Linux Master Key) <thomas@master-key.archlinux.org>
ssb> 1024R/AAE53976 2011-11-19
ssb> 2048R/96A8F3F2 2011-11-19
Output with gnupg 2.1:
$ gpg -K
/home/thomas/.gnupg/pubring.gpg
sec dsa1024/31CFFD50 2005-09-04
uid [ultimate] Thomas Bächler <thomas.baechler@gmx.de>
uid [ultimate] Thomas Bächler <thomas.baechler@rwth-aachen.de>
ssb elg2048/648E6F29 2005-09-04
sec rsa4096/8E4B1A25 2011-05-04
uid [ultimate] Thomas Bächler <thomas@archlinux.org>
ssb rsa4096/20016BDB 2011-05-04
As you can see, the third key is no longer listed with gnupg 2.1. When I try to
use the key for signing, gnupg complains that there is no private key.
Downgrading to version 2.0 again resolves the issue.