OpenPGP smartcard: addcardkey fails

Lionel Elie Mamane lionel at mamane.lu
Wed Feb 15 21:07:02 CET 2006


On Wed, Feb 15, 2006 at 07:50:17PM +0100, Lionel Elie Mamane wrote:
> Hi,
> 
> I'm trying to generate an authentication subkey (tied to my main
> OpenPGP key) in my OpenPGP (FSFE Fellowship) smartcard (for poldi /
> SSH use), but can't get it to work. gpg --edit-card and --card-status
> works like a charm.

I tried with the built-in ccid driver, same result:

Command> addcardkey
gpg: DBG: ccid-driver: sending 6F 09 00 00 00 00 14 04 00 00 00 00 05 00 CA 00 6E 00 A1
gpg: DBG: ccid-driver: status: 00  error: 00  octet[9]: 04
               data: 00 00 CB 4F 10 D2 76 00 01 24 01 01 01 00 01 00 00 03 9D 00 00 73 81 9D C0 01 78 C1 05 01 04 00 00 20 C2 05 01 04 00 00 20 C3 05 01 04 00 00 20 C4 07 00 FE FE FE 03 03 03 C5 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 C6 3C C4 85 A6 CD 7E C6 6E 9E EC 33 65 F2 70 F2 75 E4 C3 2F 6C A5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 00 00 00 00 00 00 00 00 00 00 00 00 5E 07 6C 6D 61 6D 61 6E 65 90 00 F3
gpg: DBG: ccid-driver: sending 6F 09 00 00 00 00 15 04 00 00 00 40 05 00 CA 00 C4 00 4B
gpg: DBG: ccid-driver: status: 00  error: 00  octet[9]: 04
               data: 00 40 09 00 FE FE FE 03 03 03 90 00 24
Signature key ....: [none]
Encryption key....: [none]
Authentication key: [none]

Please select the type of key to generate:
   (1) Signature key
   (2) Encryption key
   (3) Authentication key
Your selection? 3
gpg: DBG: ccid-driver: sending 6F 0A 00 00 00 00 16 04 00 00 00 00 06 00 DA 00 C4 01 01 18
gpg: DBG: ccid-driver: status: 00  error: 00  octet[9]: 04
               data: 00 00 02 90 00 92
Key is protected.
gpg: secret key parts are not available
gpg: Key generation failed: general error
gpg: DBG: ccid-driver: sending 6F 0A 00 00 00 00 17 04 00 00 00 40 06 00 DA 00 C4 01 00 59
gpg: DBG: ccid-driver: status: 00  error: 00  octet[9]: 04
               data: 00 40 02 90 00 D2


-- 
Lionel



More information about the Gnupg-users mailing list