The Fellowship / Forums / Fellowship smoothers / Problems writing on SmartCard on ubuntu breezy

Problems writing on SmartCard on ubuntu breezy

You need to be logged in to get access to the forums. You can do so here

Author Message

cod

Location:

Friday 30 June 2006 10:55:00 am

Problems writing on SmartCard on ubuntu breezy

Hi fellows. Finally I managed to buy a card reader wich claims to be linux 2.4 compatibile: it's a Smart Pocket from Eutron ( http://www.cardreaders.eutron.it/smartpocket.asp ) I tried to make it work under ubuntu breezy badger (kernel 2.6.12-10) but I have problems. When I try to genereate keys on the card I get: gpg: please wait while key is being generated ... gpg: pcsc_transmit failed: not transacted (0x80100016) gpg: apdu_send_simple(0) failed: card I/O error gpg: generating key failed gpg: key generation failed: general error Key generation failed: general error Bringing pcscd to forward and repeating the entire procedure shows this when generating: openct/proto-t1.c:481:t1_transceive() CT sent S-block with wtx=1 (repeated many times) ccid_usb.c:508:ReadUSB() usb_bulk_read(003/002): Resource temporarily unavailable openct/proto-t1.c:218:t1_transceive() fatal: transmit/receive failed ifdwrapper.c:735:IFDTransmit() Card not transacted: 612 winscard.c:1491:SCardTransmit() Card not transacted: 0x80100016 ccid_usb.c:474:WriteUSB() usb_bulk_write(003/002): Resource temporarily unavailable ifdwrapper.c:484:IFDStatusICC() Card not transacted: 612 eventhandler.c:301:EHStatusHandlerThread() Error communicating to: Eutron SIM Pocket Combo 00 00 ccid_usb.c:474:WriteUSB() usb_bulk_write(003/002): Resource temporarily unavailable ifdwrapper.c:484:IFDStatusICC() Card not transacted: 612 eventhandler.c:301:EHStatusHandlerThread() Error communicating to: Eutron SIM Pocket Combo 00 00 I have no problems with gpg --card-status but it seems like I can't write on the card. Can anyone help me?

maffulli

Location: Milan, Italy

Monday 03 July 2006 11:24:21 am

Re: Problems writing on SmartCard on ubuntu breezy

I am not an expert of gpg and pcscd, but I know that the two are not always working well together. Try disabling pcscd and try creating a key using directly gpg's internal driver. If this fails you might want to contact also gpg users list at http://lists.gnupg.org/pipermail/gnupg-users/ thanks stef

cod

Location:

Monday 03 July 2006 11:38:40 am

Re: Problems writing on SmartCard on ubuntu breezy

Thanks Stefano, but it didn't work. I get: gpg: pcsc_establish_context failed: no service (0x8010001d) gpg: card reader not available gpg: OpenPGP card not available: general error so I think pcscd is needed. I'll contact the gpg user list. Ancora grazie

remijnj

Location:

Tuesday 04 July 2006 10:25:18 am

Re: Problems writing on SmartCard on ubuntu breezy

I had the same errors (well, some of them at least) and I got it working by doing the following. Start pcscd and then call 'gpg --disable-ccid --edit-key '. This seems to be the opposite (use pcscd and disable the internal ccid driver of gnupg) of what the other commenter suggested. I got this from the HOWTO (the full one). Hope that helps.

cod

Location:

Tuesday 04 July 2006 10:52:00 am

Re: Problems writing on SmartCard on ubuntu breezy

Thanks remijnj: it worked! I owe you a beer

rabinath

Location:

Tuesday 22 August 2006 11:48:36 am

Re: Problems writing on SmartCard on ubuntu breezy

Here's another beer for You! --disable-ccid works for me, too. I have a O2 Micro Oz776 SmartCard Reader (USB ID 0b97:7762) built into my laptop.

remijnj

Location:

Tuesday 22 August 2006 1:02:42 pm

Re: Problems writing on SmartCard on ubuntu breezy

Great, it's good to see it works for both of you now. I live in amsterdam so when one of you is in the neighborhood i'd like my free beer . Joost

andog

Location:

Monday 27 November 2006 1:55:26 pm

Re: Problems writing on SmartCard on ubuntu breezy

same problem, but i had to use the option --disable-ccid only for the authentication key.

Right menu

Fellow Events

<< September 2008 >>
Mon Tue Wed Thu Fri Sat Sun
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 
Selected Day Today


FSFE Card


DRM.info
© FSFE