gpg: OpenPGP card not available: Assuan server fault

Felix E. Klee felix.klee at inka.de
Sun Feb 12 20:55:19 CET 2006


Today, I tried out GnuPG 1.9.21 (from CVS) and GnuPG 1.9.20, in order to
access OpenPGP cards with my SPR532 card reader, but without success -
see below.  Any idea what I may be doing wrong?  I tried it out with two
different cards, at least one of which is yet unused.

As I'm at it, a minor complaint: In order to get the gpg2 binary, I had
to do:

  gnupg-1.9.20/g10# make
  gnupg-1.9.20/g10# make install

It was not sufficient to do:

  gnupg-1.9.20# make
  gnupg-1.9.20# make install

AFAICS, the above additional step is not documented anywhere.

Details:
    
* Messages with 1.9.20:

  # gpgsm --learn-card
  gpgsm: NOTE: THIS IS A DEVELOPMENT VERSION!
  gpgsm: It is only intended for test purposes and should NOT be
  gpgsm: used in a production environment or with production keys!
  gpgsm: can't connect to `/root/.gnupg/S.gpg-agent': No such file or directory
  scdaemon[13949]: NOTE: this is a development version!
  scdaemon[13949]: reading public key failed: Missing item in object
  scdaemon[13949]: reading public key failed: Missing item in object
  scdaemon[13949]: reading public key failed: Missing item in object
  gpg-agent[13948]: card has S/N: D2760001240101010001000005B60000
  # scdaemon[13949]: scdaemon (GnuPG) 1.9.20 stopped
  
  # gpg2 --card-edit
  gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
  gpg: It is only intended for test purposes and should NOT be
  gpg: used in a production environment or with production keys!
  gpg: WARNING: This version of gpg is not very matured and
  gpg: WARNING: only intended for testing.  Please keep using
  gpg: WARNING: gpg 1.2.x, 1.3.x or 1.4.x for OpenPGP
  
  gpg: DBG: connection to agent established
  scdaemon[13961]: NOTE: this is a development version!
  scdaemon[13961]: reading public key failed: Missing item in object
  scdaemon[13961]: reading public key failed: Missing item in object
  scdaemon[13961]: reading public key failed: Missing item in object
  gpg-agent[13960]: card has S/N: D2760001240101010001000005B60000
  Application ID ...: D2760001240101010001000005B60000
  Version ..........: 1.1
  Manufacturer .....: PPC Card Systems
  Serial number ....: 000005B6
  Name of cardholder: [not set]
  Language prefs ...: de
  Sex ..............: unspecified
  URL of public key : [not set]
  Login data .......: [not set]
  Signature PIN ....: forced
  Max. PIN lengths .: 254 254 254
  PIN retry counter : 3 3 3
  Signature counter : 0
  Signature key ....: [none]
  Encryption key....: [none]
  Authentication key: [none]
  General key info..: [none]
  
  Command> scdaemon[13961]: updating status of slot 0 to 0x0007
  scdaemon[13961]: client pid is 13960, sending signal 12
  scdaemon[13961]: scdaemon (GnuPG) 1.9.20 stopped
  
           
  gpg: OpenPGP card not available: Assuan server fault

* Messages with 1.9.21 from CVS:

  # gpgsm --learn-card
  gpgsm: NOTE: THIS IS A DEVELOPMENT VERSION!
  gpgsm: It is only intended for test purposes and should NOT be
  gpgsm: used in a production environment or with production keys!
  gpgsm: can't connect to `/root/.gnupg/S.gpg-agent': No such file or directory
  scdaemon[15326]: NOTE: this is a development version!
  scdaemon[15326]: reading public key failed: Missing item in object
  scdaemon[15326]: reading public key failed: Missing item in object
  scdaemon[15326]: reading public key failed: Missing item in object
  gpg-agent[15325]: card has S/N: D2760001240101010001000005B60000
  # scdaemon[15326]: scdaemon (GnuPG) 1.9.21-cvs3973 stopped
  
  # gpg2 --card-edit
  gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
  gpg: It is only intended for test purposes and should NOT be
  gpg: used in a production environment or with production keys!
  gpg: WARNING: This version of gpg is not very matured and
  gpg: WARNING: only intended for testing.  Please keep using
  gpg: WARNING: gpg 1.2.x, 1.3.x or 1.4.x for OpenPGP
  
  gpg: DBG: connection to agent established
  scdaemon[15355]: NOTE: this is a development version!
  scdaemon[15355]: reading public key failed: Missing item in object
  scdaemon[15355]: reading public key failed: Missing item in object
  scdaemon[15355]: reading public key failed: Missing item in object
  gpg-agent[15354]: card has S/N: D2760001240101010001000005B60000
  Application ID ...: D2760001240101010001000005B60000
  Version ..........: 1.1
  Manufacturer .....: PPC Card Systems
  Serial number ....: 000005B6
  Name of cardholder: [not set]
  Language prefs ...: de
  Sex ..............: unspecified
  URL of public key : [not set]
  Login data .......: [not set]
  Signature PIN ....: forced
  Max. PIN lengths .: 254 254 254
  PIN retry counter : 3 3 3
  Signature counter : 0
  Signature key ....: [none]
  Encryption key....: [none]
  Authentication key: [none]
  General key info..: [none]
  
  Command> scdaemon[15355]: updating status of slot 0 to 0x0007
  scdaemon[15355]: client pid is 15354, sending signal 12
  scdaemon[15355]: scdaemon (GnuPG) 1.9.21-cvs3973 stopped
  
           
  gpg: OpenPGP card not available: Assuan server fault
    
* Auxiliary packages:

  libgpg-error 1.1
  libgcrypt 1.2.2
  libassuan 0.6.10
  libksba 0.9.13
  pth 2.0.6

-- 
Felix E. Klee



More information about the Gnupg-users mailing list