Re: Gnupg doesn't recognize card.

2010-02-02 Thread Simon Josefsson
Werner Koch  writes:

> On Fri, 29 Jan 2010 01:22, jcr...@gmail.com said:
>
>> $ killall -u  scdaemon #usually has to be entered 2-3x to
>> kill it
>
> FWIW, 
>
>   gpgconf --reload scdaemon
>
> does the same in a well defined manner.

The --reload parameter doesn't appear to be documented.  Is it really
supported for use in long-term portable scripts?

/Simon

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Gnupg doesn't recognize card.

2010-01-30 Thread taurus


On 30 January 2010, at 02:51, Chris Ruff wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On 1/29/10 9:23 PM, taurus wrote:


On 29 January 2010, at 00:22, Chris Ruff wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512




Gpg does not recognize my fellowship card;
~ xxx$ gpg --card-status
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error
Reader 01: Gemplus GemPC Twin 00 00


Is that a new OpenPGP card (2.0)?



No, it is a v1.0 Fellowship card.

Only the Macbook Pro is new.


On the Mac (10.5.8) I've found that when I receive this error to  
kill

the scdaemon and reinsert the reader/card.

$ killall -u  scdaemon #usually has to be entered  
2-3x to

kill it

Then I'm able to reinsert and perform a 'gpg --card-status'

Hope this helps.



I kill scdaemon several times but error persists.
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error


Thank you,





Have you run 'pcsctest'?


pcsctest is fine. Werner says the Gemplus readers are buggy, they  
don't support extended

length APDUs.


$ pcsctest

MUSCLE PC/SC Lite Test Program

Testing SCardEstablishContext: Command successful.
Testing SCardGetStatusChange
Please insert a working reader   : Command successful.
Testing SCardListReaders : Command successful.
Reader 01: Gemplus GemPC Twin 00 00
Enter the reader number  : 01
Waiting for card insertion
: Command successful.
Testing SCardConnect : Command successful.
Testing SCardStatus  : Command successful.
Current Reader Name  : Gemplus GemPC Twin 00 00
Current Reader State : 0x34
Current Reader Protocol  : 0x1
Current Reader ATR Size  : 20 (0x14)
Current Reader ATR Value : 3B FA 13 00 FF 81 31 80 45 00 31 C1  
73 C0 01 00 00 90 00 B1

Testing SCardDisconnect  : Command successful.
Testing SCardReleaseContext  : Command successful.
Testing SCardEstablishContext: Command successful.
Testing SCardGetStatusChange
Please insert a working reader   : Command successful.
Testing SCardListReaders : Command successful.
Reader 01: Gemplus GemPC Twin 00 00



Thank you.




___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Gnupg doesn't recognize card.

2010-01-29 Thread Chris Ruff
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On 1/29/10 9:23 PM, taurus wrote:
> 
> On 29 January 2010, at 00:22, Chris Ruff wrote:
> 
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA512
>>
>>
>
> Gpg does not recognize my fellowship card;
> ~ xxx$ gpg --card-status
> gpg: selecting openpgp failed: Card error
> gpg: OpenPGP card not available: Card error
> Reader 01: Gemplus GemPC Twin 00 00

 Is that a new OpenPGP card (2.0)?
>>>
>>>
>>> No, it is a v1.0 Fellowship card.
>>>
>>> Only the Macbook Pro is new.
>>
>> On the Mac (10.5.8) I've found that when I receive this error to kill
>> the scdaemon and reinsert the reader/card.
>>
>> $ killall -u  scdaemon #usually has to be entered 2-3x to
>> kill it
>>
>> Then I'm able to reinsert and perform a 'gpg --card-status'
>>
>> Hope this helps.
>>
> 
> I kill scdaemon several times but error persists.
> gpg: selecting openpgp failed: Card error
> gpg: OpenPGP card not available: Card error
> 
> 
> Thank you,
> 
> 
> 
> 
Have you run 'pcsctest'?

- -- 
__
Chris Ruff
email: jcr...@gmail.com
gpg key: 0x307A351B4EC4B6A1
gpg fgpr: BF2F 2497 22E7 FEB5 C805
  075C 307A 351B 4EC4 B6A1
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCgAGBQJLY564AAoJEDB6NRtOxLahEHMQAK7fPDIVAKvXbyX/nDW4kLVN
o0qy+E6okt9L0aqpvTuYm4Q6J7SnLW5vHcSdli7Tgr9ZhcLCp9Ut0KkCQHiYyZwv
k3sBGZVzb9mHu1t5rIWniKUoOUj9wLVTdvDDuk5TSxpT7oAj9QKgjcSq8m0XHmzM
uGNqKiAtQE+3T/9OzEyVXj3mWPCwJKCrM+LYYa312Heb70pSDa8e+yxwjNoRVtsQ
9fvXPYubiYEwAoc3y2rl+6dYlv9N35mxVzt2rUMZ5nvoq4PfSRT7i63MIgY6CsTE
LgyhnBYjzewDyJpy6YAW9e2V0SCYRpaJ3mRnFmT4QlQ6uthHEKw/EMrcxTgZ854A
0wjJdRcb4bn04JU2Qj8wnGbI7IryJ0j7H3BOdMD4lrd6jWLC92elT6Nl5ZRr/CuD
XR0TMYrIg7pqMH+XmARilGNGX/KzXDjK2Ule33dSXfUTsif3zFyAId3WB+qKta2T
y2HGmriJJgmNFM6tIEEvvPEg1/KZ48fDPUq40SkNa3PUpDbLc5VVXPrnrPA44bPJ
z+acMc6tvhDvapcbD590Od7wYaNjm8kzEl6MQXX8KmwrLeVW9bO6XJSFb+t2xx0B
wxsIWLdbJkOvRfZrcXiEEx/yQih0+x53LTm2fJy/5wcKI00R5+WjAGfv+eW7BMcS
+eJONIX3fNAkpv8kw9jT
=M9lA
-END PGP SIGNATURE-

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Gnupg doesn't recognize card.

2010-01-29 Thread taurus


On 29 January 2010, at 00:22, Chris Ruff wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512




Gpg does not recognize my fellowship card;
~ xxx$ gpg --card-status
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error
Reader 01: Gemplus GemPC Twin 00 00


Is that a new OpenPGP card (2.0)?



No, it is a v1.0 Fellowship card.

Only the Macbook Pro is new.


On the Mac (10.5.8) I've found that when I receive this error to kill
the scdaemon and reinsert the reader/card.

$ killall -u  scdaemon #usually has to be entered 2-3x  
to

kill it

Then I'm able to reinsert and perform a 'gpg --card-status'

Hope this helps.



I kill scdaemon several times but error persists.
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error


Thank you,





___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Gnupg doesn't recognize card.

2010-01-29 Thread John Ruff


On Jan 29, 2010, at 8:12 AM, Werner Koch wrote:


On Fri, 29 Jan 2010 01:22, jcr...@gmail.com said:

$ killall -u  scdaemon #usually has to be entered  
2-3x to

kill it


FWIW,

 gpgconf --reload scdaemon

does the same in a well defined manner.


I will remember to use this in the future.




Shalom-Salam,

  Werner


ps.
Please do not use killall but pkill which is a well defined command.


pkill is what I used (up until now) on Linux, but the command doesn't  
exist by default on OS X (at least not mine).  Only killall.





--
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.



___
Chris Ruff
jcr...@gmail.com
GPG Key: 0x307A351B4EC4B6A1
FGPR: BF2F 2497 22E7 FEB5 C805
  075C 307A 351B 4EC4 B6A1

"No one can see past a choice they don't understand." --The Oracle









PGP.sig
Description: This is a digitally signed message part
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Gnupg doesn't recognize card.

2010-01-29 Thread Werner Koch
On Fri, 29 Jan 2010 01:22, jcr...@gmail.com said:

> $ killall -u  scdaemon #usually has to be entered 2-3x to
> kill it

FWIW, 

  gpgconf --reload scdaemon

does the same in a well defined manner.


Shalom-Salam,

   Werner


ps.
Please do not use killall but pkill which is a well defined command.


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Gnupg doesn't recognize card.

2010-01-28 Thread Chris Ruff
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512


>>>
>>> Gpg does not recognize my fellowship card;
>>> ~ xxx$ gpg --card-status
>>> gpg: selecting openpgp failed: Card error
>>> gpg: OpenPGP card not available: Card error
>>> Reader 01: Gemplus GemPC Twin 00 00
>>
>> Is that a new OpenPGP card (2.0)?
>
>
>No, it is a v1.0 Fellowship card.
>
>Only the Macbook Pro is new.

On the Mac (10.5.8) I've found that when I receive this error to kill
the scdaemon and reinsert the reader/card.

$ killall -u  scdaemon #usually has to be entered 2-3x to
kill it

Then I'm able to reinsert and perform a 'gpg --card-status'

Hope this helps.

- -- 
__
Chris Ruff
email: jcr...@gmail.com
GPG Key: 0x307A351B4EC4B6A1
FGPR: BF2F 2497 22E7 FEB5 C805
  075C 307A 351B 4EC4 B6A1

"No one can see past a choice they don't understand." --The Oracle
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: OpenPGP SmartCard v2.0
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCgAGBQJLYio+AAoJEDB6NRtOxLahgTwQAKVkK6bgglZZb3iTqTt682QM
2/QiB47yrQYcmkD0GxtVbqu/ZhOdR/vYnVzJUcPc+fs70xv44kHnqIFQfiQicmb6
PG5dd20GpWpKkr6A3mJrrxGLeezwFtKDxMUtuXryewYAn8ueSHmItgHLF5yLCbW0
H0u1qJ5yfCY+WkBW54aWDwA4Y2Dp7hQtC4TYVWIFqKbXsMcuK89mkgZepmHeqDrc
hjZhcJq2duHDQtgUB4RhsuHaShBdy0Xr2quowHQUZkak1DT8qHM9WbDzXPKp+2dC
Q8NLsv8ONSnJSH1dpa5ZU78wWj12TbbuJoGOr0jQJ3/YLtSKp/I3N3egga362DK4
LICWCmbfiQrYuMsxy+cP4CRqtvQsqU/aHTrAs7NNdM7pntZG/nLbZrtzq/YiFWe2
bT/uvS3PPLnkW12zkp4ytY1YB4TiV4G7zRm8sjP7KCU8dps8mjXq6vjF2RLmZ7FD
AMG0aXzZbZsW/7gl0t5eBoPk4iIvudBzkIQlgCOB1HgozTRBF5+BGOmw6bF1uMIC
67Pni9zFtPfQt4TyMadKF+6tXfm67/mzmSi5SxKD4f6iVcE3YjLNBx2aq9OCLOgb
LGjjThZl8WDJPEQf2I4Cw8LIDWNR5OKmPqOAB6BjCMcew+xOYTXvbUkIlLsZJxZO
cuO6eDcJCuSUAHL+jr1v
=LAbG
-END PGP SIGNATURE-

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Gnupg doesn't recognize card.

2010-01-23 Thread taurus


On 22 January 2010, at 17:56, Werner Koch wrote:



Gpg does not recognize my fellowship card;
~ xxx$ gpg --card-status
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error
Reader 01: Gemplus GemPC Twin 00 00


Is that a new OpenPGP card (2.0)?



No, it is a v1.0 Fellowship card.

Only the Macbook Pro is new.

Thank you.

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Gnupg doesn't recognize card.

2010-01-22 Thread Werner Koch
On Wed, 20 Jan 2010 17:11, taurus...@gmail.com said:

> Gpg does not recognize my fellowship card;
> ~ xxx$ gpg --card-status
> gpg: selecting openpgp failed: Card error
> gpg: OpenPGP card not available: Card error

> Reader 01: Gemplus GemPC Twin 00 00

Is that a new OpenPGP card (2.0)?  If so you are out of luck on Unix
systems: The Gemplus readers are buggy (they don't support extended
length APDUs).  You may try to use the workaround which is in the
internal CCID driver of scdaemon (stop pcscd and make sure that you have
permissions to write to the usb port).  This workaround sometimes work.

BTW, it works on Windows because the gemplus driver seems to have a
workaround for it.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Gnupg doesn't recognize card.

2010-01-20 Thread taurus

Hi list,

I'm not an expert, and I need some help to solve this.

Gpg does not recognize my fellowship card;
~ xxx$ gpg --card-status
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error


And pcsctest looks like this;

~ xxx$ pcsctest

MUSCLE PC/SC Lite Test Program

Testing SCardEstablishContext: Command successful.
Testing SCardGetStatusChange
Please insert a working reader   : Command successful.
Testing SCardListReaders : Command successful.
Reader 01: Gemplus GemPC Twin 00 00
Enter the reader number  : 01
Waiting for card insertion
 : Command successful.
Testing SCardConnect : Command successful.
Testing SCardStatus  : Command successful.
Current Reader Name  : Gemplus GemPC Twin 00 00
Current Reader State : 0x34
Current Reader Protocol  : 0x1
Current Reader ATR Size  : 20 (0x14)
Current Reader ATR Value : 3B FA 13 00 FF 81 31 80 45 00 31 C1  
73 C0 01 00 00 90 00 B1

Testing SCardDisconnect  : Command successful.
Testing SCardReleaseContext  : Command successful.
Testing SCardEstablishContext: Command successful.
Testing SCardGetStatusChange
Please insert a working reader   : Command successful.
Testing SCardListReaders : Command successful.
Reader 01: Gemplus GemPC Twin 00 00

Any library is missing or some?

I can't figure out how to solve this,

Mac OSX (10.5.8)
gpg 2.0.14

Any help?

TIA.



___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users