Page MenuHome GnuPG

Gpgsm 2.1 external key search gives duplicated results
Closed, ResolvedPublic

Description

Gpgsm 2.1.8 Windows 7 32 bit.

Noticed this because kleopatra brings up the "the search result has been
truncated" message even if only one key is shown.

To reproduce:

set GNUPGHOME=%TMP%\gpghome
mkdir %GNUPGHOME%
echo keyserver ca.intevation.de::::o=Intevation GmbH,c=de > %GNUPGHOME%/gpgsm.conf
gpgsm --list-external-keys bernhard@intevation.de

The same key is listed 10 times. (Which is also was Kleopatra shows in the
configuration as maximum search results)

Attached is the debug output.

Event Timeline

Only on Windows? A quick check on Unix shows that it works.

Yes only on Windows. Works for me on GNU/Linux, too.

werner edited projects, added gnupg (gpg22); removed gnupg (gpg21), gnupg.

Still happens. There are also "BER" errors that seem random.

C:\Users\aheinecke>set GNUPGHOME=%TMP%\gpghome

C:\Users\aheinecke>mkdir %GNUPGHOME%

C:\Users\aheinecke>echo keyserver ca.intevation.de::::o=Intevation GmbH,c=de > %GNUPGHOME%/gpgsm.conf

C:\Users\aheinecke>gpgsm --list-external-keys bernhard@intevation.de
gpgsm: Die "Keybox" `C:\Users\AHEINE~1\AppData\Local\Temp\gpghome\pubring.kbx' wurde erstellt
gpgsm: failed to parse a certificate: BER Fehler
gpgsm: failed to parse a certificate: BER Fehler
gpgsm: failed to parse a certificate: BER Fehler
gpgsm: failed to parse a certificate: BER Fehler
gpgsm: failed to parse a certificate: BER Fehler
gpgsm: failed to parse a certificate: BER Fehler
gpgsm: failed to parse a certificate: BER Fehler
gpgsm: failed to parse a certificate: BER Fehler
gpgsm: failed to parse a certificate: BER Fehler
gpgsm: failed to parse a certificate: BER Fehler

C:\Users\aheinecke>gpgsm --list-external-keys bernhard@intevation.de
[external keys]
---------------
           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41


C:\Users\aheinecke>gpgsm --list-external-keys bernhard@intevation.de
gpgsm: failed to parse a certificate: BER Fehler
[external keys]
---------------
           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41


C:\Users\aheinecke>gpgsm --list-external-keys bernhard@intevation.de
gpgsm: failed to parse a certificate: BER Fehler
[external keys]
---------------
           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41

           ID: 0x8DB04E41
          S/N: 10
       Issuer: /CN=Intevation Email CA 2016/O=Intevation GmbH/C=DE
      Subject: /CN=Bernhard E. Reiter/O=Intevation GmbH/C=DE
          aka: bernhard.reiter@intevation.de
          aka: bernhard@intevation.de
     validity: 2018-02-09 20:24:02 through 2020-02-09 20:24:02
     key type: 3072 bit RSA
    key usage: digitalSignature nonRepudiation keyEncipherment
  fingerprint: 22:48:1E:7F:7F:36:40:9F:BE:8A:61:43:80:A4:FD:AE:8D:B0:4E:41


C:\Users\aheinecke>

No longer happens when the good old ldapwrapper is used.