Did I just fry my smartcard?

Grant Olson kgo at grant-olson.net
Sun Jan 30 17:18:56 CET 2011


On 01/30/2011 06:03 AM, Werner Koch wrote:
> On Sat, 29 Jan 2011 19:54, kgo at grant-olson.net said:
> 
>> gpg: detected reader `SCM SCR 3310 [CCID Interface] 00 00'
>> gpg: pcsc_connect failed: sharing violation (0x8010000b)
> 
> Another process has locked the reader.  Most likely this is either a gpg
> 1 or an scdaemon.
> 

DOH!  I think it was gpg-agent.  If I use gpg2 I get these results:

grant at johnyaya:~$ gpg2 --card-status
gpg: OpenPGP card not available: Not supported
grant at johnyaya:~$ gpg2 --card-edit

gpg: OpenPGP card not available: Not supported

gpg/card>

gpg: OpenPGP card not available: Not supported


>> grant at johnsmallberries:~$ gpg-connect-agent
>>> scd apdu 00 44 00 00
>> ERR 100663351 Invalid value <SCD>
> 
> Same reason as above; just different error messages.  Figure out which
> process has locked the reader and kill it.  Then try again.  You should
> also add the options
> 
> debug-ccid-driver
> debug 2048
> log-file /foo/bar/scdaemon.log
> 
> to ~/.gnupg/scdaemon.log .
> 

With those options enabled, I tried issuing the reset codes.  First time
it complained because no card was inserted.  Second time it complained
because it couldn't find a supported application on the card.  I'm not
sure if that message is normal when the card is in admin-lockout mode,
or if it indicates there are more serious prolems with the card.

grant at johnyaya:~$ gpg-connect-agent
> scd apdu 00 e6 00 00
ERR 100663406 Card removed <SCD>
> scd apdu 00 44 00 00
ERR 100663406 Card removed <SCD>
> scd serialno
ERR 100663351 Invalid value <SCD>
> scd apdu 00 e6 00 00
ERR 100663351 Invalid value <SCD>
> scd apdu 00 44 00 00
ERR 100663351 Invalid value <SCD>
>


  5 - 2011-01-30 11:12:40 scdaemon[3871]: updating slot 0 status:
0x0007->0x0004 (7->8)
  5 - 2011-01-30 11:12:40 scdaemon[3871]: sending signal 12 to client 3871
  5 - 2011-01-30 11:12:42 scdaemon[3871]: updating slot 0 status:
0x0004->0x0007 (8->9)
  5 - 2011-01-30 11:12:42 scdaemon[3871]: sending signal 12 to client 3871
  4 - 2011-01-30 11:12:50 gpg-agent[3716]: chan_7 <- scd apdu 00 e6 00 00
  4 - 2011-01-30 11:12:50 gpg-agent[3716]: new connection to SCdaemon
established (reusing)
  4 - 2011-01-30 11:12:50 gpg-agent[3716]: chan_9 -> apdu 00 e6 00 00
  5 - 2011-01-30 11:12:50 scdaemon[3871]: chan_7 <- apdu 00 e6 00 00
  5 - 2011-01-30 11:12:50 scdaemon[3871]: chan_7 -> ERR 100663406 Card
removed <SCD>
  4 - 2011-01-30 11:12:50 gpg-agent[3716]: chan_9 <- ERR 100663406 Card
removed <SCD>
  4 - 2011-01-30 11:12:50 gpg-agent[3716]: chan_7 -> ERR 100663406 Card
removed <SCD>
  4 - 2011-01-30 11:12:56 gpg-agent[3716]: chan_7 <- scd apdu 00 44 00 00
  4 - 2011-01-30 11:12:56 gpg-agent[3716]: chan_9 -> apdu 00 44 00 00
  5 - 2011-01-30 11:12:56 scdaemon[3871]: chan_7 <- apdu 00 44 00 00
  5 - 2011-01-30 11:12:56 scdaemon[3871]: chan_7 -> ERR 100663406 Card
removed <SCD>
  4 - 2011-01-30 11:12:56 gpg-agent[3716]: chan_9 <- ERR 100663406 Card
removed <SCD>
  4 - 2011-01-30 11:12:56 gpg-agent[3716]: chan_7 -> ERR 100663406 Card
removed <SCD>
  4 - 2011-01-30 11:13:01 gpg-agent[3716]: chan_7 <- scd serialno
  4 - 2011-01-30 11:13:01 gpg-agent[3716]: chan_9 -> serialno
  5 - 2011-01-30 11:13:01 scdaemon[3871]: chan_7 <- serialno
  5 - 2011-01-30 11:13:01 scdaemon[3871]: no supported card application
found: Invalid value
  5 - 2011-01-30 11:13:01 scdaemon[3871]: chan_7 -> ERR 100663351
Invalid value <SCD>
  4 - 2011-01-30 11:13:01 gpg-agent[3716]: chan_9 <- ERR 100663351
Invalid value <SCD>
  4 - 2011-01-30 11:13:01 gpg-agent[3716]: chan_7 -> ERR 100663351
Invalid value <SCD>
  4 - 2011-01-30 11:13:09 gpg-agent[3716]: chan_7 <- scd apdu 00 e6 00 00
  4 - 2011-01-30 11:13:09 gpg-agent[3716]: chan_9 -> apdu 00 e6 00 00
  5 - 2011-01-30 11:13:09 scdaemon[3871]: chan_7 <- apdu 00 e6 00 00
  5 - 2011-01-30 11:13:09 scdaemon[3871]: no supported card application
found: Invalid value
  5 - 2011-01-30 11:13:09 scdaemon[3871]: chan_7 -> ERR 100663351
Invalid value <SCD>
  4 - 2011-01-30 11:13:09 gpg-agent[3716]: chan_9 <- ERR 100663351
Invalid value <SCD>
  4 - 2011-01-30 11:13:09 gpg-agent[3716]: chan_7 -> ERR 100663351
Invalid value <SCD>
  4 - 2011-01-30 11:13:13 gpg-agent[3716]: chan_7 <- scd apdu 00 44 00 00
  4 - 2011-01-30 11:13:13 gpg-agent[3716]: chan_9 -> apdu 00 44 00 00
  5 - 2011-01-30 11:13:13 scdaemon[3871]: chan_7 <- apdu 00 44 00 00
  5 - 2011-01-30 11:13:13 scdaemon[3871]: no supported card application
found: Invalid value
  5 - 2011-01-30 11:13:13 scdaemon[3871]: chan_7 -> ERR 100663351
Invalid value <SCD>
  4 - 2011-01-30 11:13:13 gpg-agent[3716]: chan_9 <- ERR 100663351
Invalid value <SCD>
  4 - 2011-01-30 11:13:13 gpg-agent[3716]: chan_7 -> ERR 100663351
Invalid value <SCD>
  4 - 2011-01-30 11:13:15 gpg-agent[3716]: chan_7 <- [eof]
  4 - 2011-01-30 11:13:15 gpg-agent[3716]: chan_9 -> RESTART
  5 - 2011-01-30 11:13:15 scdaemon[3871]: chan_7 <- RESTART
  5 - 2011-01-30 11:13:15 scdaemon[3871]: chan_7 -> OK
  4 - 2011-01-30 11:13:15 gpg-agent[3716]: chan_9 <- OK
  4 - 2011-01-30 11:13:15 gpg-agent[3716]: handler 0x9c50a38 for fd 7
terminated



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20110130/2a81eeca/attachment-0001.pgp>


More information about the Gnupg-users mailing list