OpenPGP card, gpgsm, decrypt
Jörg Deckert
joergd at bitquell.de
Sat Sep 21 19:28:14 CEST 2013
Hi,
S/MIME decryption with OpenPGP card doesn't work for me:
$ gpgsm --armor --encrypt --recipient addr at mail Test.txt >Test.txt.asc
gpgsm: encrypted data created
$ LC_ALL=C gpgsm --decrypt Test.txt.asc
gpgsm: DBG: recp 0 - issuer: xxxxxxxxx
gpgsm: DBG: recp 0 - serial: 0096A601DB1CC451E4
gpgsm: error decrypting session key: Invalid ID
gpgsm: decrypting session key failed: Invalid ID
gpgsm: message decryption failed: No secret key <GpgSM>
(De)crypting with gpg and signing with gpg and gpgsm is fully working.
What's wrong?
The OpenPGP card:
$ LC_ALL=C gpg --card-status
Application ID ...: D2760001240102000005000010B10000
Version ..........: 2.0
Manufacturer .....: ZeitControl
Serial number ....: 000010B1
Name of cardholder: Joerg Deckert
Language prefs ...: de
Sex ..............: male
URL of public key :
Login data .......:
Signature PIN ....: forced
Key attributes ...: 2048R 2048R 2048R
Max. PIN lengths .: 32 32 32
PIN retry counter : 3 0 3
Signature counter : 1
Signature key ....: D827 D045 09AC 6FA6 5BA2 03D4 D54B 22F8 BBDB 852D
created ....: 2013-09-21 14:30:58
Encryption key....: 8F35 5D73 11D8 9931 C152 81E2 4C02 68BA 178F E724
created ....: 2013-09-21 14:29:51
Authentication key: 310F A63E C901 6251 8CEF 2897 224C 4841 4A9E C43B
created ....: 2013-09-21 14:32:30
General key info..: pub 2048R/BBDB852D 2013-09-21 J D <joergd at bitquell.de>
sec# 2048R/DE9405E1 created: 2013-09-21 expires: never
ssb> 2048R/178FE724 created: 2013-09-21 expires: 2015-09-21
card-no: 0005 000010B1
ssb> 2048R/BBDB852D created: 2013-09-21 expires: 2015-09-21
card-no: 0005 000010B1
ssb> 2048R/4A9EC43B created: 2013-09-21 expires: 2015-09-21
card-no: 0005 000010B1
$ LC_ALL=C gpg --list-secret-keys
/home/joergd/.gnupg/secring.gpg
-------------------------------
sec# 2048R/DE9405E1 2013-09-21
uid J D () <joergd at bitquell.de>
ssb> 2048R/178FE724 2013-09-21
ssb> 2048R/BBDB852D 2013-09-21
ssb> 2048R/4A9EC43B 2013-09-21
$ LC_ALL=C gpgsm --list-secret-keys
/home/joergd/.gnupg/pubring.kbx
-------------------------------
ID: 0xFFFFFFFF9B49DE76
S/N: 0096A601DB1CC451E4
Issuer: xxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: yyyyyyyyyyyyyyyyyyyyyyyyyy
aka: joergd at bitquell.de
validity: 2013-09-21 16:20:00 through 2015-09-21 16:20:00
key type: 2048 bit RSA
key usage: digitalSignature keyEncipherment dataEncipherment
fingerprint: CE:B1:78:2F:86:8F:DA:E4:03:F5:68:5B:46:B5:1C:33:9B:49:DE:76
card s/n: D2760001240102000005000010B10000
--
Jörg Deckert
More information about the Gnupg-users
mailing list