GPG PKCS#11 error: "OpenPGP card not available: End of file"

Bug #1874726 reported by Evan Ward
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnupg-pkcs11-scd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Running Ubuntu 18.04. Smart card is working in Evolution, Firefox, Chrome. GPG crashes with an end of file error when trying to read the card. Details below:

```
$ gpg --card-status
gpg: WARNING: server 'scdaemon' is older than us (0.9.1 < 2.2.4)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
gpg: OpenPGP card not available: End of file
```

```
$ cat ~/.gnupg/gnupg-pkcs11-scd.conf
log-file /home/ward/.local/var/log/gnupg-pkcs11-scd.log

# verbose

# debug-all

providers p1

# provider-p1-library /usr/lib/x86_64-linux-gnu/p11-kit-proxy.so
# provider-p1-library /usr/lib/pkcs11/libcoolkeypk11.so
provider-p1-library /usr/lib/x86_64-linux-gnu/pkcs11/onepin-opensc-pkcs11.so
# provider-p1-library /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so
# provider-p1-cert-private
```

```
$ tail -n 20 /home/ward/.local/var/log/gnupg-pkcs11-scd.log
gnupg-pkcs11-scd[1383]: chan_0 -> S SERIALNO D276000124011150313121DD2FFC1111
gnupg-pkcs11-scd[1383]: chan_0 -> S APPTYPE PKCS11
gnupg-pkcs11-scd[2811.4013066048]: Listening to socket '/tmp/gnupg-pkcs11-scd.1Qe6St/agent.S'
gnupg-pkcs11-scd[2811.4013066048]: accepting connection
gnupg-pkcs11-scd[2811]: chan_0 -> OK PKCS#11 smart-card server for GnuPG ready
gnupg-pkcs11-scd[2811.4013066048]: processing connection
gnupg-pkcs11-scd[2811]: chan_0 <- GETINFO socket_name
gnupg-pkcs11-scd[2811]: chan_0 -> D /tmp/gnupg-pkcs11-scd.1Qe6St/agent.S
gnupg-pkcs11-scd[2811]: chan_0 -> OK
gnupg-pkcs11-scd[2811]: chan_0 <- OPTION event-signal=12
gnupg-pkcs11-scd[2811]: chan_0 -> OK
gnupg-pkcs11-scd[2811]: chan_0 <- GETINFO version
gnupg-pkcs11-scd[2811]: chan_0 -> D 0.9.1
gnupg-pkcs11-scd[2811]: chan_0 -> OK
gnupg-pkcs11-scd[2811]: chan_0 <- SERIALNO openpgp
gnupg-pkcs11-scd[2811]: chan_0 -> S SERIALNO D276000124011150313121DD2FFC1111 0
gnupg-pkcs11-scd[2811]: chan_0 -> OK
gnupg-pkcs11-scd[2811]: chan_0 <- LEARN --force
gnupg-pkcs11-scd[2811]: chan_0 -> S SERIALNO D276000124011150313121DD2FFC1111
gnupg-pkcs11-scd[2811]: chan_0 -> S APPTYPE PKCS11
```

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnupg-pkcs11-scd 0.9.1-1build1
ProcVersionSignature: Ubuntu 4.15.0-96.97-generic 4.15.18
Uname: Linux 4.15.0-96-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
CurrentDesktop: GNOME
Date: Fri Apr 24 08:58:29 2020
DistributionChannelDescriptor:
 # This is a distribution channel descriptor
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-precise-amd64-20120703-2
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-09-04 (2423 days ago)
InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 20120703-15:08
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnupg-pkcs11-scd
UpgradeStatus: Upgraded to bionic on 2019-01-28 (451 days ago)

Revision history for this message
Evan Ward (evanward1) wrote :
Revision history for this message
Eric Blevins (eblevins) wrote :

Version 0.10.0 from upstream fixes numerous issues.
https://github.com/alonbl/gnupg-pkcs11-scd/blob/master/ChangeLog

I had to compile from upstream source to get this working on 20.04 and 22.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.