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.
Command> addcardkey gpg: detected reader `SCM SCR 335 (60600ad9) 00 00' 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: 3 Admin PIN attempts remaining before card is permanently locked Admin PIN PIN Key is protected. gpg: secret key parts are not available gpg: Key generation failed: general error Running with --debug 2048 Command> addcardkey gpg: DBG: send apdu: c=00 i=CA p0=00 p1=6E lc=-1 le=256 gpg: DBG: PCSC_data: 00 CA 00 6E 00 gpg: DBG: response: sw=9000 datalen=201 gpg: DBG: dump: 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 gpg: DBG: send apdu: c=00 i=CA p0=00 p1=C4 lc=-1 le=256 gpg: DBG: PCSC_data: 00 CA 00 C4 00 gpg: DBG: response: sw=9000 datalen=7 gpg: DBG: dump: 00 FE FE FE 03 03 03 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: send apdu: c=00 i=DA p0=00 p1=C4 lc=1 le=-1 gpg: DBG: PCSC_data: 00 DA 00 C4 01 01 gpg: DBG: response: sw=9000 datalen=0 gpg: DBG: dump: Key is protected. gpg: secret key parts are not available gpg: Key generation failed: general error gpg: DBG: send apdu: c=00 i=DA p0=00 p1=C4 lc=1 le=-1 gpg: DBG: PCSC_data: 00 DA 00 C4 01 00 gpg: DBG: response: sw=9000 datalen=0 gpg: DBG: dump: Running pcscd in debug mode gives: ccid_usb.c:375:OpenUSBByName() Found Vendor/Product: 04E6/5115 (SCM SCR 335) ccid_usb.c:377:OpenUSBByName() Using USB bus/device: 002/007 ccid_usb.c:720:get_data_rates() IFD does not support GET_DATA_RATES request: Broken pipe ifdhandler.c:250:IFDHGetCapabilities() lun: 0, tag: 0xFAE ifdhandler.c:292:IFDHGetCapabilities() Reader supports 1 slots ifdhandler.c:725:IFDHPowerICC() lun: 0 Card ATR: 3B FA 13 00 FF 81 31 80 45 00 31 C1 73 C0 01 00 00 90 00 B1 winscard_msg_srv.c:203:SHMProcessEventsServer() Common channel packet arrival winscard_msg_srv.c:212:SHMProcessEventsServer() SHMProcessCommonChannelRequest detects: 7 pcscdaemon.c:151:SVCServiceRunLoop() A new context thread creation is requested: 7 winscard_svc.c:136:ContextThread() Thread is started: 7 winscard_msg_srv.c:274:SHMProcessEventsContext() correctly processed client: 7 winscard_svc.c:178:ContextThread() Client is protocol version 2:0 winscard_msg_srv.c:274:SHMProcessEventsContext() correctly processed client: 7 winscard.c:159:SCardEstablishContext() Establishing Context: 17033377 winscard_msg_srv.c:274:SHMProcessEventsContext() correctly processed client: 7 winscard.c:213:SCardConnect() Attempting Connect to SCM SCR 335 (60600ad9) 00 00 using protocol: 3 prothandler.c:130:PHSetProtocol() Attempting PTS to T=1 ifdhandler.c:375:IFDHSetProtocolParameters() lun: 0, protocol T=1 ifdhandler.c:1171:extra_egt() Extra EGT patch applied winscard.c:323:SCardConnect() Active Protocol: T=1 winscard.c:333:SCardConnect() hCard Identity: 18d6c winscard_msg_srv.c:274:SHMProcessEventsContext() correctly processed client: 7 winscard_msg_srv.c:274:SHMProcessEventsContext() correctly processed client: 7 And then a lot of: winscard_msg_srv.c:274:SHMProcessEventsContext() correctly processed client: 7 winscard.c:1464:SCardTransmit() Send Protocol: T=1 ifdhandler.c:831:IFDHTransmitToICC() lun: 0 winscard_msg_srv.c:274:SHMProcessEventsContext() correctly processed client: 7 winscard.c:1464:SCardTransmit() Send Protocol: T=1 ifdhandler.c:831:IFDHTransmitToICC() lun: 0 Any clue? Thanks in advance. -- Lionel _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users