GnuPG dropped support of smart card version 1.0?

Ludovic Rousseau ludovic.rousseau at free.fr
Fri Dec 27 17:07:40 CET 2024


Le 27/12/2024 à 16:29, Werner Koch a écrit :
> Hi!

Hello Werner,

> On Thu, 26 Dec 2024 17:38, Ludovic Rousseau said:
> 
>> I have an old OpenPGP card.
> 
> Indeed, pretty old.
> 
>> Any chance I can use this OpenPGP card again?
> 
> I should be abale to find a 1.0 card somewhere in my desk.  Give me some
> days to test that card.   You are using pcscd and not the internal ccid
> driver, I assume.

Yes, of course. I use pcsc-lite :-)

With GnuPG 1.x the APDUs are:
APDU: 00 A4 04 00 06 D2 76 00 01 24 01
SW: 6F 12 84 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 90 00
APDU: 00 CA 00 4F 00
SW: D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 90 00
APDU: 00 CA 5F 52 00
SW: 6A 88
APDU: 00 CA 00 6E 00
SW: 4F 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 73 81 9D C0 01 
60 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 
01 FE FE FE 03 03 03 C5 3C ED 60 4F F2 0C DB 4C 2E C7 E7 48 2E F8 04 1B 
D8 6E AA 19 F4 31 EC 93 64 5B 5B 3A 25 6E BB A3 A1 7E B6 9A 0B ED 25 83 
1F A2 9F 58 D8 06 87 49 B1 E1 E0 39 06 37 A2 1D AB D1 21 5C 09 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 5E 00 90 00
APDU: 00 CA 00 6E 00
SW: 4F 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 73 81 9D C0 01 
60 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 
01 FE FE FE 03 03 03 C5 3C ED 60 4F F2 0C DB 4C 2E C7 E7 48 2E F8 04 1B 
D8 6E AA 19 F4 31 EC 93 64 5B 5B 3A 25 6E BB A3 A1 7E B6 9A 0B ED 25 83 
1F A2 9F 58 D8 06 87 49 B1 E1 E0 39 06 37 A2 1D AB D1 21 5C 09 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 5E 00 90 00
APDU: 00 CA 00 5E 00
SW: 90 00
APDU: 00 CA 00 6E 00
SW: 4F 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 73 81 9D C0 01 
60 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 
01 FE FE FE 03 03 03 C5 3C ED 60 4F F2 0C DB 4C 2E C7 E7 48 2E F8 04 1B 
D8 6E AA 19 F4 31 EC 93 64 5B 5B 3A 25 6E BB A3 A1 7E B6 9A 0B ED 25 83 
1F A2 9F 58 D8 06 87 49 B1 E1 E0 39 06 37 A2 1D AB D1 21 5C 09 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 5E 00 90 00
APDU: 00 CA 00 6E 00
SW: 4F 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 73 81 9D C0 01 
60 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 
01 FE FE FE 03 03 03 C5 3C ED 60 4F F2 0C DB 4C 2E C7 E7 48 2E F8 04 1B 
D8 6E AA 19 F4 31 EC 93 64 5B 5B 3A 25 6E BB A3 A1 7E B6 9A 0B ED 25 83 
1F A2 9F 58 D8 06 87 49 B1 E1 E0 39 06 37 A2 1D AB D1 21 5C 09 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 5E 00 90 00
APDU: 00 CA 00 6E 00
SW: 4F 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 73 81 9D C0 01 
60 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 
01 FE FE FE 03 03 03 C5 3C ED 60 4F F2 0C DB 4C 2E C7 E7 48 2E F8 04 1B 
D8 6E AA 19 F4 31 EC 93 64 5B 5B 3A 25 6E BB A3 A1 7E B6 9A 0B ED 25 83 
1F A2 9F 58 D8 06 87 49 B1 E1 E0 39 06 37 A2 1D AB D1 21 5C 09 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 5E 00 90 00
APDU: 00 CA 00 65 00
SW: 5B 11 52 6F 75 73 73 65 61 75 3C 3C 4C 75 64 6F 76 69 63 5F 2D 02 66 
72 5F 35 01 31 90 00
APDU: 00 CA 5F 50 00
SW: 90 00
APDU: 00 CA 00 6E 00
SW: 4F 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 73 81 9D C0 01 
60 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 
01 FE FE FE 03 03 03 C5 3C ED 60 4F F2 0C DB 4C 2E C7 E7 48 2E F8 04 1B 
D8 6E AA 19 F4 31 EC 93 64 5B 5B 3A 25 6E BB A3 A1 7E B6 9A 0B ED 25 83 
1F A2 9F 58 D8 06 87 49 B1 E1 E0 39 06 37 A2 1D AB D1 21 5C 09 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 5E 00 90 00
APDU: 00 CA 00 6E 00
SW: 4F 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 73 81 9D C0 01 
60 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 
01 FE FE FE 03 03 03 C5 3C ED 60 4F F2 0C DB 4C 2E C7 E7 48 2E F8 04 1B 
D8 6E AA 19 F4 31 EC 93 64 5B 5B 3A 25 6E BB A3 A1 7E B6 9A 0B ED 25 83 
1F A2 9F 58 D8 06 87 49 B1 E1 E0 39 06 37 A2 1D AB D1 21 5C 09 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 5E 00 90 00
APDU: 00 CA 00 7A 00
SW: 93 03 00 00 05 90 00

With GnuPG 2.x I get:
APDU: 00 A4 00 0C 02 3F 00
SW: 6B 00
APDU: 00 A4 04 00 06 D2 76 00 01 24 01
SW: 6F 12 84 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 90 00
APDU: 00 CA 00 4F 00
SW: D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 90 00
APDU: 00 CA 5F 52 00
SW: 6A 88
APDU: 00 CA 00 6E 00
SW: 4F 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 73 81 9D C0 01 
60 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 
01 FE FE FE 03 03 03 C5 3C ED 60 4F F2 0C DB 4C 2E C7 E7 48 2E F8 04 1B 
D8 6E AA 19 F4 31 EC 93 64 5B 5B 3A 25 6E BB A3 A1 7E B6 9A 0B ED 25 83 
1F A2 9F 58 D8 06 87 49 B1 E1 E0 39 06 37 A2 1D AB D1 21 5C 09 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 5E 00 90 00
APDU: 00 CA 7F 74 00
SW: 6A 88
APDU: 00 CA 00 5E 00
SW: 90 00
APDU: 00 CA 00 65 00
SW: 5B 11 52 6F 75 73 73 65 61 75 3C 3C 4C 75 64 6F 76 69 63 5F 2D 02 66 
72 5F 35 01 31 90 00
APDU: 00 CA 5F 50 00
SW: 90 00
APDU: 00 CA 00 6E 00
SW: 4F 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 73 81 9D C0 01 
60 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 
01 FE FE FE 03 03 03 C5 3C ED 60 4F F2 0C DB 4C 2E C7 E7 48 2E F8 04 1B 
D8 6E AA 19 F4 31 EC 93 64 5B 5B 3A 25 6E BB A3 A1 7E B6 9A 0B ED 25 83 
1F A2 9F 58 D8 06 87 49 B1 E1 E0 39 06 37 A2 1D AB D1 21 5C 09 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 5E 00 90 00
APDU: 00 CA 00 6E 00
SW: 4F 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 73 81 9D C0 01 
60 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 
01 FE FE FE 03 03 03 C5 3C ED 60 4F F2 0C DB 4C 2E C7 E7 48 2E F8 04 1B 
D8 6E AA 19 F4 31 EC 93 64 5B 5B 3A 25 6E BB A3 A1 7E B6 9A 0B ED 25 83 
1F A2 9F 58 D8 06 87 49 B1 E1 E0 39 06 37 A2 1D AB D1 21 5C 09 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 5E 00 90 00
APDU: 00 CA 00 7A 00
SW: 93 03 00 00 05 90 00


One difference is that GnuPG 1.x uses:
APDU: 00 CA 00 6E 00
SW: 4F 10 D2 76 00 01 24 01 01 00 00 01 00 00 00 C9 00 00 73 81 9D C0 01 
60 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 
01 FE FE FE 03 03 03 C5 3C ED 60 4F F2 0C DB 4C 2E C7 E7 48 2E F8 04 1B 
D8 6E AA 19 F4 31 EC 93 64 5B 5B 3A 25 6E BB A3 A1 7E B6 9A 0B ED 25 83 
1F A2 9F 58 D8 06 87 49 B1 E1 E0 39 06 37 A2 1D AB D1 21 5C 09 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 5E 00 90 00

While GnuPG 2.x uses:
APDU: 00 CA 7F 74 00
SW: 6A 88

I do not really need to use this old card again.
I just used it for some tests for 
https://github.com/LudovicRousseau/PCSC/issues/215

Maybe the easiest thing to do is to document that cards version 1.0 are 
no more supported and report an understandable error message from GnuPG 2.x.

Regards,

-- 
Dr. Ludovic Rousseau




More information about the Gnupg-devel mailing list