OpenPGP card and secret keys
Alex Mauer
hawke at hawkesnest.net
Wed Feb 7 23:47:26 CET 2007
I seem to be having some trouble with my openpgp card:
gnupg knows I have secret keys on an openpgp card:
$ gpg --list-secret-keys
/home/amauer/.gnupg/secring.gpg
-------------------------------
sec# 1024D/51192FF2 2002-03-22
ssb> 1024R/4A1C1224 2005-06-27
(output has been modified showing only what I think are relevant lines)
but then when I try to sign a file, gpg ignores these keys:
$ gpg --clearsign test.txt
gpg: secret key parts are not available
gpg: no default secret key: general error
gpg: test.txt: clearsign failed: general error
Even if I specify the signing subkey from the card, it doesn't work:
$ gpg --clearsign -u '0x4a1c1224' test.txt
gpg: secret key parts are not available
gpg: skipped "0x4a1c1224": general error
gpg: test.txt: clearsign failed: general error
If I force that subkey, it works:
$ gpg --clearsign -u '0x4a1c1224!' test.txt
$
(gpg agent popped up a pinentry dialog, and I was able to enter the PIN
on the pinpad)
What am I doing wrong?
-Alex Mauer "hawke"
More information about the Gnupg-users
mailing list