Re: Problem with CryptoStick and Mac OS 10.8

Ludovic Rousseau <[email protected]>
Newsgroups gmane.comp.lib.muscle
Message-ID <CAGstE8DAFxV7FgdNo3-VRuxSOQbvyuv6U0YtE-_V-tkQj2A_sw@mail.gmail.com>
2013/10/17 Jan-Kaspar Münnich <[email protected]>:
> Hello,

Hello,

> I have some problems with generating gpg keys on a CryptoStick
> (http://pcsclite.alioth.debian.org/ccid/shouldwork.html#0x20A00x4107)
> with Mac OS 10.8.

I guess you have installed a driver for your device. Exact?
The CCID driver provided by Apple should not support this device.

> Werner Koch from GnuPG said it would be a problem with the card reader:
>
>> 21:01 scdaemon[1604] reader slot 0: using ccid driver
>>
>> You inserted the right card during these 5 minutes, right?
>>
>> 21:01 scdaemon[1604] DBG:  raw apdu: 00 A4 04 00 06 D2 76 00 01 24 01
>> 21:01 scdaemon[1604] DBG:  response: sw=9000  datalen=0
>>
>> Now the OpenPGP application has been selected.
>>
>> 21:02 scdaemon[1604] Version-2 ......: yes
>> 21:02 scdaemon[1604] Get-Challenge ..: yes (2048 bytes max)
>> [...]
>>
>> Card info hast been gathered.
>>
>> 21:03 scdaemon[1604] DBG: send apdu: c=00 i=47 p1=81 p2=00 lc=2 le=2048 em=1
>> 21:03 scdaemon[1604] DBG:  raw apdu: 00 47 81 00 00 00 02 B6 00 08 00
>> 21:03 scdaemon[1604] DBG:  response: sw=6A88  datalen=0
>> 21:03 scdaemon[1604] reading public key failed: Missing item in object
>>
>> Running the key generation failed.  The problem seems to be your card
>> reader or the OS X USB stack.
>
> Key generation worked before with earlier versions of Mac OS but doesn't
> work with current 10.8, tested on two machines. There are no problems
> with other gpg operations on the smartcard.
>
> Unfortunately generating the log as mentioned at
> http://pcsclite.alioth.debian.org/ccid.html#support doesn't work. I only
> get this output and an empty logfile:
>
> $ sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu |
> tee log.txt
> /SourceCache/SmartCardServices_Executables/SmartCardServices-55105/src/PCSC/debuglog.c:222:DebugLogSetLevel()
> debug level=debug
> /SourceCache/SmartCardServices_Executables/SmartCardServices-55105/src/PCSC/debuglog.c:251:DebugLogSetCategory()
> Debug options: APDU
> /SourceCache/SmartCardServices_Executables/SmartCardServices-55105/src/PCSC/pcscdaemon.c:585:main()
> pcsc-lite 1.4.0 daemon ready.
> ^C/SourceCache/SmartCardServices_Executables/SmartCardServices-55105/src/PCSC/pcscdaemon.c:662:signal_trap()
> Preparing for suicide
> /SourceCache/SmartCardServices_Executables/SmartCardServices-55105/src/PCSC/pcscdaemon.c:294:SVCServiceRunLoop()
> Preparing to exit...
> /SourceCache/SmartCardServices_Executables/SmartCardServices-55105/src/PCSC/readerfactory.c:1047:RFCleanupReaders()
> entering cleaning function
> /SourceCache/SmartCardServices_Executables/SmartCardServices-55105/src/PCSC/pcscdaemon.c:611:at_exit()
> cleaning /var/run
>
> It would be really nice if you could help me with that.

1. Connect your reader
2. kill any running pcscd process
3. retry the log generation step

It may also help to use /usr/sbin/pcscd instead of pcscd

Bye

-- 
 Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
[email protected]
http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.