Decryption with OpenPGP card fails

Edmond edmond at systemli.org
Sun Apr 29 11:50:40 CEST 2012


Hello Werner!

On 29/4/2012 11:22, Werner Koch wrote:
> I assume that your gpg-agent and scdaemon are also from 2.0.19. 

Yes, they are.

> To debug this you should enable debugging for
> scdaemon by putting the lines
> 
>   debug 1024
>   log-file /foo/mylog.log
> 
> into ~/.gnupg/scdaemon.conf


This only gives:
--------------------
scdaemon[11960]: chan_7 <- SERIALNO openpgp
scdaemon[11960]: chan_7 -> S SERIALNO D276000124010200000500000FD90000 0
scdaemon[11960]: chan_7 -> OK
scdaemon[11960]: chan_7 <- RESTART
scdaemon[11960]: chan_7 -> OK
--------------------
when trying to decrypt.

>   debug 2048

Output attached to this message.

> This also shows the PIN and other information from the card; thus
> you better edit the file before posting.

I don't even get to enter my PIN, so I guess this is not an issue here :)


Best,

    Edmond
-------------- next part --------------
2012-04-29 11:41:30 scdaemon[11986] listening on socket `/tmp/gpg-5h9cW9/S.scdaemon'
2012-04-29 11:41:30 scdaemon[11986] handler for fd -1 started
2012-04-29 11:41:31 scdaemon[11986] reader slot 0: not connected
2012-04-29 11:41:31 scdaemon[11986] slot 0: ATR=3B DA 18 FF 81 B1 FE 75 1F 03 00 31 C5 73 C0 01 40 00 90 00 0C
2012-04-29 11:41:31 scdaemon[11986] DBG: send apdu: c=00 i=A4 p1=00 p2=0C lc=2 le=-1 em=0
2012-04-29 11:41:31 scdaemon[11986] DBG:   PCSC_data: 00 A4 00 0C 02 3F 00
2012-04-29 11:41:31 scdaemon[11986] DBG:  response: sw=6B00  datalen=0
2012-04-29 11:41:31 scdaemon[11986] DBG: send apdu: c=00 i=A4 p1=04 p2=00 lc=6 le=-1 em=0
2012-04-29 11:41:31 scdaemon[11986] DBG:   PCSC_data: 00 A4 04 00 06 D2 76 00 01 24 01
2012-04-29 11:41:31 scdaemon[11986] DBG:  response: sw=9000  datalen=0
2012-04-29 11:41:31 scdaemon[11986] DBG:     dump:  
2012-04-29 11:41:31 scdaemon[11986] DBG: send apdu: c=00 i=CA p1=00 p2=4F lc=-1 le=256 em=0
2012-04-29 11:41:31 scdaemon[11986] DBG:   PCSC_data: 00 CA 00 4F 00
2012-04-29 11:41:31 scdaemon[11986] DBG:  response: sw=9000  datalen=16
2012-04-29 11:41:31 scdaemon[11986] DBG:       dump:  D2 76 00 01 24 01 02 00 00 05 00 00 0F D9 00 00
2012-04-29 11:41:31 scdaemon[11986] AID: D2 76 00 01 24 01 02 00 00 05 00 00 0F D9 00 00
2012-04-29 11:41:31 scdaemon[11986] DBG: send apdu: c=00 i=CA p1=5F p2=52 lc=-1 le=256 em=0
2012-04-29 11:41:31 scdaemon[11986] DBG:   PCSC_data: 00 CA 5F 52 00
2012-04-29 11:41:31 scdaemon[11986] DBG:  response: sw=9000  datalen=10
2012-04-29 11:41:31 scdaemon[11986] DBG:       dump:  00 31 C5 73 C0 01 40 05 90 00
2012-04-29 11:41:31 scdaemon[11986] Historical Bytes: 00 31 C5 73 C0 01 40 05 90 00
2012-04-29 11:41:31 scdaemon[11986] DBG: send apdu: c=00 i=CA p1=00 p2=C4 lc=-1 le=256 em=0
2012-04-29 11:41:31 scdaemon[11986] DBG:   PCSC_data: 00 CA 00 C4 00
2012-04-29 11:41:31 scdaemon[11986] DBG:  response: sw=9000  datalen=7
2012-04-29 11:41:31 scdaemon[11986] DBG:       dump:  00 20 20 20 03 00 03
2012-04-29 11:41:31 scdaemon[11986] DBG: send apdu: c=00 i=CA p1=00 p2=6E lc=-1 le=256 em=0
2012-04-29 11:41:31 scdaemon[11986] DBG:   PCSC_data: 00 CA 00 6E 00
2012-04-29 11:41:31 scdaemon[11986] DBG:  response: sw=9000  datalen=217
2012-04-29 11:41:31 scdaemon[11986] DBG:       dump:  4F 10 D2 76 00 01 24 01 02 00 00 05 00 00 0F D9 00 00 5F 52 0A 00 31 C5 73 C0 01 40 05 90 00 73 81 B7 C0 0A 7C 00 08 00 08 00 08 00 08 00 C1 06 01 08 00 00 20 00 C2 06 01 10 00 00 20 00 C3 06 01 10 00 00 20 00 C4 07 00 20 20 20 03 00 03 C5 3C 77 23 B3 A9 82 EC 50 35 A0 0F 09 31 DD 1C 83 06 CD 72 BB 15 AE F8 F0 EA 8B 13 29 F1 F3 70 E3 24 F1 05 21 FD 89 D3 22 C9 8E 6F 44 04 3C A3 32 12 88 01 61 A3 DC 13 CE C0 05 6B 9E 3C C6 3C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CD 0C 4F 65 A0 83 4F 65 A1 04 4F 05 99 53
2012-04-29 11:41:31 scdaemon[11986] DBG: send apdu: c=00 i=CA p1=00 p2=5E lc=-1 le=256 em=0
2012-04-29 11:41:31 scdaemon[11986] DBG:   PCSC_data: 00 CA 00 5E 00
2012-04-29 11:41:31 scdaemon[11986] DBG:  response: sw=9000  datalen=0
2012-04-29 11:41:31 scdaemon[11986] DBG:       dump:  
2012-04-29 11:41:31 scdaemon[11986] Version-2 ......: yes
2012-04-29 11:41:31 scdaemon[11986] Get-Challenge ..: yes (2048 bytes max)
2012-04-29 11:41:31 scdaemon[11986] Key-Import .....: yes
2012-04-29 11:41:31 scdaemon[11986] Change-Force-PW1: yes
2012-04-29 11:41:31 scdaemon[11986] Private-DOs ....: yes
2012-04-29 11:41:31 scdaemon[11986] Algo-Attr-Change: yes
2012-04-29 11:41:31 scdaemon[11986] SM-Support .....: no
2012-04-29 11:41:31 scdaemon[11986] Max-Cert3-Len ..: 2048
2012-04-29 11:41:31 scdaemon[11986] Max-Cmd-Data ...: 2048
2012-04-29 11:41:31 scdaemon[11986] Max-Rsp-Data ...: 2048
2012-04-29 11:41:31 scdaemon[11986] Cmd-Chaining ...: no
2012-04-29 11:41:31 scdaemon[11986] Ext-Lc-Le ......: yes
2012-04-29 11:41:31 scdaemon[11986] Status Indicator: 05
2012-04-29 11:41:31 scdaemon[11986] GnuPG-No-Sync ..: no
2012-04-29 11:41:31 scdaemon[11986] GnuPG-Def-PW2 ..: no
2012-04-29 11:41:31 scdaemon[11986] DBG: send apdu: c=00 i=CA p1=00 p2=6E lc=-1 le=256 em=0
2012-04-29 11:41:31 scdaemon[11986] DBG:   PCSC_data: 00 CA 00 6E 00
2012-04-29 11:41:31 scdaemon[11986] DBG:  response: sw=9000  datalen=217
2012-04-29 11:41:31 scdaemon[11986] DBG:       dump:  4F 10 D2 76 00 01 24 01 02 00 00 05 00 00 0F D9 00 00 5F 52 0A 00 31 C5 73 C0 01 40 05 90 00 73 81 B7 C0 0A 7C 00 08 00 08 00 08 00 08 00 C1 06 01 08 00 00 20 00 C2 06 01 10 00 00 20 00 C3 06 01 10 00 00 20 00 C4 07 00 20 20 20 03 00 03 C5 3C 77 23 B3 A9 82 EC 50 35 A0 0F 09 31 DD 1C 83 06 CD 72 BB 15 AE F8 F0 EA 8B 13 29 F1 F3 70 E3 24 F1 05 21 FD 89 D3 22 C9 8E 6F 44 04 3C A3 32 12 88 01 61 A3 DC 13 CE C0 05 6B 9E 3C C6 3C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CD 0C 4F 65 A0 83 4F 65 A1 04 4F 05 99 53
2012-04-29 11:41:31 scdaemon[11986] Key-Attr-sign ..: RSA, n=2048, e=32, fmt=std
2012-04-29 11:41:31 scdaemon[11986] DBG: send apdu: c=00 i=CA p1=00 p2=6E lc=-1 le=256 em=0
2012-04-29 11:41:31 scdaemon[11986] DBG:   PCSC_data: 00 CA 00 6E 00
2012-04-29 11:41:31 scdaemon[11986] DBG:  response: sw=9000  datalen=217
2012-04-29 11:41:31 scdaemon[11986] DBG:       dump:  4F 10 D2 76 00 01 24 01 02 00 00 05 00 00 0F D9 00 00 5F 52 0A 00 31 C5 73 C0 01 40 05 90 00 73 81 B7 C0 0A 7C 00 08 00 08 00 08 00 08 00 C1 06 01 08 00 00 20 00 C2 06 01 10 00 00 20 00 C3 06 01 10 00 00 20 00 C4 07 00 20 20 20 03 00 03 C5 3C 77 23 B3 A9 82 EC 50 35 A0 0F 09 31 DD 1C 83 06 CD 72 BB 15 AE F8 F0 EA 8B 13 29 F1 F3 70 E3 24 F1 05 21 FD 89 D3 22 C9 8E 6F 44 04 3C A3 32 12 88 01 61 A3 DC 13 CE C0 05 6B 9E 3C C6 3C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CD 0C 4F 65 A0 83 4F 65 A1 04 4F 05 99 53
2012-04-29 11:41:31 scdaemon[11986] Key-Attr-encr ..: RSA, n=4096, e=32, fmt=std
2012-04-29 11:41:31 scdaemon[11986] DBG: send apdu: c=00 i=CA p1=00 p2=6E lc=-1 le=256 em=0
2012-04-29 11:41:31 scdaemon[11986] DBG:   PCSC_data: 00 CA 00 6E 00
2012-04-29 11:41:31 scdaemon[11986] DBG:  response: sw=9000  datalen=217
2012-04-29 11:41:31 scdaemon[11986] DBG:       dump:  4F 10 D2 76 00 01 24 01 02 00 00 05 00 00 0F D9 00 00 5F 52 0A 00 31 C5 73 C0 01 40 05 90 00 73 81 B7 C0 0A 7C 00 08 00 08 00 08 00 08 00 C1 06 01 08 00 00 20 00 C2 06 01 10 00 00 20 00 C3 06 01 10 00 00 20 00 C4 07 00 20 20 20 03 00 03 C5 3C 77 23 B3 A9 82 EC 50 35 A0 0F 09 31 DD 1C 83 06 CD 72 BB 15 AE F8 F0 EA 8B 13 29 F1 F3 70 E3 24 F1 05 21 FD 89 D3 22 C9 8E 6F 44 04 3C A3 32 12 88 01 61 A3 DC 13 CE C0 05 6B 9E 3C C6 3C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CD 0C 4F 65 A0 83 4F 65 A1 04 4F 05 99 53
2012-04-29 11:41:31 scdaemon[11986] Key-Attr-auth ..: RSA, n=4096, e=32, fmt=std
2012-04-29 11:41:32 scdaemon[11986] updating slot 0 status: 0x0000->0x0007 (0->1)
2012-04-29 11:41:32 scdaemon[11986] sending signal 31 to client 11980


More information about the Gnupg-users mailing list