[pkg-gnupg-maint] Bug#783703: pcscd needs to be restarted after first plugging of usb card reader

Andrew Gallagher Andrew.Gallagher at ward.ie
Wed Apr 29 12:06:20 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Thanks.

Unfortunately I can't put the card in the broadcom reader as it's a
full size card reader and I've already chopped out the small format
card. The "correct fix" would appear to be the only recourse...

Andrew.

On 29/04/15 12:59, Ludovic Rousseau wrote:
> reassign  783703gnupg2 retitle 783703 do not just use the first
> PC/SC smart card reader tags783703 upstream thank
> 
> Hello,
> 
> The problem is that gpg2 does not allow to specify a smart card
> reader to use if you have 2 or more readers.
> 
> What you can do is insert your GPG card in the integrated Broadcom
> Corp 5880 reader, or in fact in the first reader listes by pcscd.
> 
> A correct fix would be for GPG to try to find the GPG card in any 
> present reader, not just the first one.
> 
> I reassign the bug tognupg2.
> 
> Bye
> 
> Le 29/04/2015 12:18, Andrew Gallagher a écrit :
>> Package: pcscd Version: 1.8.13-1 Severity: important
>> 
>> I am using an ACS card reader with openpgp smart card. It was
>> working until I rebooted, and then gnupg stopped recognising the
>> card. Restarting pcscd with the ACS reader plugged in fixed the
>> problem, and the fix persists even after I unplug/replug the usb
>> reader.
>> 
>> The symptoms and workaround appear identical to this fedora bug:
>> 
>> https://bugzilla.redhat.com/show_bug.cgi?id=1092207
>> 
>> I noticed the same behaviour with the ordering of card readers
>> before and after pcscd restarts that the fedora OP reports:
>> 
>> agallagher at itchy:~$ gpg2 --card-status gpg: selecting openpgp
>> failed: Card not present gpg: OpenPGP card not available: Card
>> not present agallagher at itchy:~$ opensc-tool -l # Detected readers
>> (pcsc) Nr.  Card  Features  Name 0    No              Broadcom
>> Corp 5880 [Contacted SmartCard] (0123456789ABCD) 00 00 1    Yes
>> ACS ACR 38U-CCID 01 00 agallagher at itchy:~$ sudo service pcscd
>> restart [ ok ] Restarting PCSC Lite resource manager: pcscd. 
>> agallagher at itchy:~$ gpg2 --card-status Application ID ...:
>> D276000124010201000500002ED90000 Version ..........: 2.1 
>> Manufacturer .....: ZeitControl Serial number ....: 00002ED9 Name
>> of cardholder: Andrew Gallagher Language prefs ...: en Sex
>> ..............: unspecified URL of public key :
>> http://xen.andrewg.com/andrewg@andrewg.com.pub Login data
>> .......: [not set] Signature PIN ....: forced Key attributes ...:
>> 4096R 4096R 4096R Max. PIN lengths .: 32 32 32 PIN retry counter
>> : 3 0 3 Signature counter : 8 Signature key ....: 291E 79A1 DC55
>> AE27 A52E  EF83 5C1E C404 D590 6629 created ....: 2015-04-26
>> 16:01:24 Encryption key....: 0539 428D 4EF7 FF24 FE16  C291 6B09
>> 0693 1454 9D4B created ....: 2013-07-02 17:04:50 Authentication
>> key: EEFB 8D7C 6E3F 401C 4820  FFB2 85FD F561 DA8C 0C46 created
>> ....: 2015-04-26 16:18:28 General key info..: pub
>> 4096R/0x5C1EC404D5906629 2015-04-26 Andrew Gallagher 
>> <andrewg at andrewg.com> sec#  4096R/0xFB73E21AF1163937  created:
>> 2013-07-02  expires: 2017-01-20 ssb>  4096R/0x6B09069314549D4B
>> created: 2013-07-02  expires: 2017-04-25 card-no: 0005 00002ED9 
>> ssb>  4096R/0x5C1EC404D5906629  created: 2015-04-26  expires:
>> 2017-04-25 card-no: 0005 00002ED9 ssb>  4096R/0x85FDF561DA8C0C46
>> created: 2015-04-26  expires: 2017-04-25 card-no: 0005 00002ED9 
>> agallagher at itchy:~$ opensc-tool -l # Detected readers (pcsc) Nr.
>> Card  Features  Name 0    Yes             ACS ACR 38U-CCID 00 00 
>> 1    No              Broadcom Corp 5880 [Contacted SmartCard] 
>> (0123456789ABCD) 01 00
>> 
>> 
>> The new reader ordering persists across USB unplugging.
>> 
>> Andrew.
>> 
>> 
>> 
>> -- System Information: Debian Release: 8.0 APT prefers
>> stable-updates APT policy: (500, 'stable-updates'), (500,
>> 'stable') Architecture: amd64 (x86_64)
>> 
>> Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale:
>> LANG=en_IE.utf8, LC_CTYPE=en_IE.utf8 (charmap=UTF-8) Shell:
>> /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init)
>> 
>> Versions of packages pcscd depends on: ii  init-system-helpers
>> 1.22 ii  libc6                       2.19-18 ii  libccid
>> [pcsc-ifd-handler]  1.4.18-1 ii  libpcsclite1
>> 1.8.13-1 ii  libudev1                    215-17 ii  lsb-base
>> 4.1+Debian13+nmu1
>> 
>> pcscd recommends no packages.
>> 
>> Versions of packages pcscd suggests: ii  systemd  215-17
>> 
>> -- no debconf information
>> 
>> The information in this email and any attachments contain
>> confidential information and is intended only for the individual
>> named. If you are not the named addressee you should not
>> disseminate, distribute or copy this e-mail, the attachments or
>> any part thereof. Please notify the sender immediately by e-mail
>> if you have received this e-mail by mistake and delete this
>> e-mail from your system. E-mail transmission cannot be guaranteed
>> to be secure or error-free as information could be intercepted,
>> corrupted, lost, destroyed, arrive late or incomplete, or contain
>> viruses. The sender therefore does not accept liability for any
>> errors or omissions in the contents of this message which arise
>> as a result of e-mail transmission. If verification is required
>> please request a hard-copy version. Unless expressly stated, this
>> email is not intended to create any contractual relationship. If
>> this email is not sent in the course of the senders employment or
>> fulfilment of his/her duties to Ward Soluti
> ons, Ward Solutions accepts no liability whatsoever for the content
> of this message or any attachment(s). Ward Solutions Ltd.
> Registered in Republic of Ireland at 2054 Castle Drive, CityWest
> Business Campus, Dublin 24 Reg. No. 316165.
>> 
> 
> 


- -- 
Andrew Gallagher
Internetworking and Security Engineer, Ward Solutions Ltd.
Unit 2054 Castle Drive, Citywest, Dublin 24
+353 87 1200174
-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJVQMlJAAoJENW/k7AUpJcAYrwH+waN0ZiF4ClfkxW30jKB4WdF
B6/aU+2c7HQKY7kXlc6b4UY/ta39aAWNxvEc84iR694hSb4bcgVsrsNGf92DSiFC
3dz5RhWSlavtZCZgdLMRa5SikUrqydHWma8OE2oEPtxAxMiV1iOHxZ5SaG6D3K8L
cHPGVeSHXKfn1B8F3yJMK2ZE6Y6EKG/BqU0SuCbdqHHGa/F44PluPePDJRSZBOAg
bcV/eg61VSWkl6DLrQZMkxQfC/2R0MdcW217vUmhse3bulcrV2Ye7K0tEhqlDGkn
Nj6+fFHNmA7DX2MMXpHfPo4Ugn5DZTHJw+rkrTxQremK2LOVgPAiG3JcryP1lMU=
=LQNS
-----END PGP SIGNATURE-----

The information in this email and any attachments contain confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail, the attachments or any part thereof. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Unless expressly stated, this email is not intended to create any contractual relationship. If this email is not sent in the course of the senders employment or fulfilment of his/her duties to Ward Solutions, Ward Solutions accepts no liability whatsoever for the content of this message or any attachment(s). Ward Solutions Ltd. Registered in Republic of Ireland at 2054 Castle Drive, CityWest Business Campus, Dublin 24 Reg. No. 316165. 


More information about the pkg-gnupg-maint mailing list