Public bug reported:

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)

** Affects: gnupg-pkcs11-scd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874726

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg-pkcs11-scd/+bug/1874726/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to