Page MenuHome GnuPG
Feed Advanced Search

May 31 2016

bernhard assigned T2346: Invalid import result in gnupg 2.1 when importing secret keys to werner.
May 31 2016, 4:54 PM · Bug Report, gnupg, gnupg (gpg21)
bernhard raised the priority of T2346: Invalid import result in gnupg 2.1 when importing secret keys from Low to Normal.
May 31 2016, 4:54 PM · Bug Report, gnupg, gnupg (gpg21)
bernhard added a comment to T2346: Invalid import result in gnupg 2.1 when importing secret keys.

Hi, I consider it a regular defect if unexplained, because the API somehow changed.

I ran into it while testing python3-gpgme on Debian Jessie.
Two testcases fail because of the changed gpgme behaviour to count more processed
"keys" than before.

pygpgme-0.3$ python3 -m unittest tests.test_import

F..F..

FAIL: test_import_concat (tests.test_import.ImportTestCase)

Traceback (most recent call last):

File "/home/bernhard/werkbank/2auto/pygpgme-0.3/tests/test_import.py", line 105, in

test_import_concat

self.assertEqual(result.considered, 3)

AssertionError: 5 != 3

FAIL: test_import_secret_file (tests.test_import.ImportTestCase)

Traceback (most recent call last):

File "/home/bernhard/werkbank/2auto/pygpgme-0.3/tests/test_import.py", line 58, in

test_import_secret_file

self.assertEqual(result.considered, 1)

AssertionError: 3 != 1

How to see the difference without pygpgme installed in Jessie with
Package: libgpgme11
Version: 1.6.0-99intevation1

Package: gnupg2
Version: 2.1.11-99intevation2

pygpgme-0.3/tests/keys$ LANG=C GNUPGHOME=~/tmp/dot.gnupg3 gpg2 --with-colons --import
key1.pub key1.sec key2.pub
gpg: Total number processed: 5

The same on wheezy:
Package: libgpgme11
Version: 1.3.1-0kk3

Package: gnupg2
Version: 2.0.25-99intevation2
ygpgme-0.3/tests/keys$ LANG=C GNUPGHOME=~/tmp/dot.gnupg gpg2 --with-colons --import
key1.pub key1.sec key2.pub

gpg: Total number processed: 3

May 31 2016, 4:54 PM · Bug Report, gnupg, gnupg (gpg21)

May 30 2016

werner added a comment to T2358: gnupg 2.1, gpg-agent crashing on 'assertion failed' (OS X, Homebrew).

See bug 2371, which has a backtrace attached.

May 30 2016, 8:08 AM · gpgrt, Duplicate, gpgagent, gnupg (gpg21), Bug Report
werner added a project to T2358: gnupg 2.1, gpg-agent crashing on 'assertion failed' (OS X, Homebrew): Duplicate.
May 30 2016, 8:08 AM · gpgrt, Duplicate, gpgagent, gnupg (gpg21), Bug Report
werner added a comment to T2358: gnupg 2.1, gpg-agent crashing on 'assertion failed' (OS X, Homebrew).

Duplicate of T2371

May 30 2016, 8:08 AM · gpgrt, Duplicate, gpgagent, gnupg (gpg21), Bug Report
werner removed a project from T1537: gpgv does not handle expired or revoked keys: Documentation.
May 30 2016, 8:06 AM · Feature Request, gnupg
werner raised the priority of T1537: gpgv does not handle expired or revoked keys from Low to Normal.
May 30 2016, 8:06 AM · Feature Request, gnupg
werner removed a project from T1537: gpgv does not handle expired or revoked keys: Bug Report.
May 30 2016, 8:06 AM · Feature Request, gnupg
werner added a project to T1537: gpgv does not handle expired or revoked keys: Feature Request.
May 30 2016, 8:06 AM · Feature Request, gnupg
werner added a comment to T1537: gpgv does not handle expired or revoked keys.

By resolved, I meant that the man page now states:

  gpgv  assumes  that  all  keys in the keyring are trustworthy.  That does also
  mean that it does not check for expired or revoked keys.

Your wish is to change this behaviour. This would be an API break and thus I
hestitate to do this for 1.4 and 2.0. However, 2.1 has a lot of changes anyway
and I think it is okay to change it for 2.1.

May 30 2016, 8:05 AM · Feature Request, gnupg
werner lowered the priority of T1537: gpgv does not handle expired or revoked keys from Normal to Low.
May 30 2016, 8:05 AM · Feature Request, gnupg

May 27 2016

msinatra added a comment to T2367: gnupg 2.1.12 doesn't properly detect libusb in FreeBSD.

Looks good...I can even build and run it using the ports version if I hand-patch
it after extracting:

[sonicyouth] /usr/ports/security/gnupg# make extract

> License GPLv3 LGPL3 accepted by the user

> Found saved configuration for gnupg-2.1.12

> gnupg-2.1.12 depends on file: /usr/local/sbin/pkg - found

> Fetching all distfiles required by gnupg-2.1.12 for building

> Extracting for gnupg-2.1.12

> SHA256 Checksum OK for gnupg-2.1.12.tar.bz2.

> SHA256 Checksum OK for gnupg-2.1.12.tar.bz2.sig.

[sonicyouth] /usr/ports/security/gnupg# cd work/gnupg-2.1.12/
[sonicyouth] /usr/ports/security/gnupg/work/gnupg-2.1.12# patch <
~ms/Downloads/gnupg-master-
20160527.diff
Hmm... Looks like a unified diff to me...

The text leading up to this was:

diff --git a/configure.ac b/configure.ac
index 6458f1a..d90921c 100644
--- a/configure.ac
+++ b/configure.ac

Patching file configure.ac using Plan A...
Hunk #1 succeeded at 787.
done
[sonicyouth] /usr/ports/security/gnupg/work/gnupg-2.1.12# autoconf
[sonicyouth] /usr/ports/security/gnupg/work/gnupg-2.1.12# cd ../../
[sonicyouth] /usr/ports/security/gnupg# make install
[snip]

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!
Reader ...........: 1050:0111:X:0
Application ID ...: D2760001240102000006036429670000
Version ..........: 2.0
Manufacturer .....: Yubico
[snip]

May 27 2016, 10:43 PM · Bug Report, gnupg
justus added a comment to T2324: gpg --batch --export-secret-key fails (requires user interaction) if key has no passphrase.

I did not work on this other than what I merged. What I did is to enhance our
fake pinentry program to allow it to supply different passphrases, make it write
a log so that we can quantify the pinentry interaction in test cases, and to add
an export test documenting the status quo.

May 27 2016, 6:02 PM · gnupg, OpenPGP, Bug Report
werner added a comment to T2324: gpg --batch --export-secret-key fails (requires user interaction) if key has no passphrase.

The question at hand is whether dkg's patch or Justus work is the way to go. I
have not yet reviewed dkg's patch, though.

May 27 2016, 11:42 AM · gnupg, OpenPGP, Bug Report
werner added a comment to T2324: gpg --batch --export-secret-key fails (requires user interaction) if key has no passphrase.

dgk: You are right that Pinentry may be used even with --batch. In fact gpgme
uses --batch and a Pinentry is used nevertheless.

Right, there are no technical means right now to inhibit the export of private
keys. However, it would be easy to add this by not allowing gpg-agent to tell
the client the key used to encrypt the import/export command of keys.

A user migyt have used no passphrase for a key in the believe that an
unprotected key can't be exported.

May 27 2016, 11:41 AM · gnupg, OpenPGP, Bug Report
gniibe added a comment to T2367: gnupg 2.1.12 doesn't properly detect libusb in FreeBSD.

D368: 838_gnupg-master-20160527.diff

May 27 2016, 1:45 AM · Bug Report, gnupg
gniibe added a comment to T2367: gnupg 2.1.12 doesn't properly detect libusb in FreeBSD.

Thank you for the report.
Indeed, the configure script has a bug.
Attached is a patch to fix this.

May 27 2016, 1:45 AM · Bug Report, gnupg
gniibe added a project to T2367: gnupg 2.1.12 doesn't properly detect libusb in FreeBSD: Restricted Project.
May 27 2016, 1:45 AM · Bug Report, gnupg
gniibe claimed T2367: gnupg 2.1.12 doesn't properly detect libusb in FreeBSD.
May 27 2016, 1:45 AM · Bug Report, gnupg

May 24 2016

msinatra renamed T2367: gnupg 2.1.12 doesn't properly detect libusb in FreeBSD from gnuph 2.1.12 doesn't properly detect libusb in FreeBSD to gnupg 2.1.12 doesn't properly detect libusb in FreeBSD.
May 24 2016, 11:25 PM · Bug Report, gnupg
msinatra added projects to T2367: gnupg 2.1.12 doesn't properly detect libusb in FreeBSD: gnupg, Bug Report.
May 24 2016, 11:23 PM · Bug Report, gnupg

May 23 2016

dkg added a comment to T2324: gpg --batch --export-secret-key fails (requires user interaction) if key has no passphrase.

I'm not convinced that this policy is effectively implemented in gpg-agent.

The patch series that starts here:

https://lists.gnupg.org/pipermail/gnupg-devel/2016-May/031121.html

resolves the export of secret key material stored as cleartext, and it does so
without modifying gpg-agent at all.

fwiw, I do not agree with T2324 (justus on Apr 18 2016, 05:22 PM / Roundup) that gpg --batch should not use pinentry at
all -- i think it's quite useful to be able to combine --batch with pinentry,
where the key is stored protected, or is otherwise marked by gpg-agent for
limited use.

May 23 2016, 6:21 PM · gnupg, OpenPGP, Bug Report
dkg reopened T1537: gpgv does not handle expired or revoked keys as "Open".
May 23 2016, 4:40 PM · Feature Request, gnupg
dkg changed Version from 2.0.19 to 2.1.12 on T1537: gpgv does not handle expired or revoked keys.
May 23 2016, 4:40 PM · Feature Request, gnupg
dkg added a comment to T1537: gpgv does not handle expired or revoked keys.

May 23 2016, 4:40 PM · Feature Request, gnupg
dkg added a comment to T1537: gpgv does not handle expired or revoked keys.

I don't think this is actually resolved.

As noted in https://lists.gnupg.org/pipermail/gnupg-devel/2016-April/031032.html
, gpgv accepts signatures made from revoked or expired keys.

It should reject signatures made from keys it believes to be revoked or expired.

The attached tarball contains:

     pubkey.gpg -- a binary-format 2048-bit RSA OpenPGP certificate

     C47D9EDFF117EE2AA11B162D017D715B3D0C4AF2.key -- the corresponding
                                                     secret key (for
                                                     reference/experimentation
                                                     only)

     before.txt.asc -- clearsigned message made by the key before
                       certificate creation time

     during.txt.asc -- clearsigned message made by the key between
                       certificate creation and certificate expiration

     after.txt.asc -- clearsigned message made by the key after certificate
                      expiration

of these, gpg approves of during.txt.asc and after.txt.asc, but not before.txt.asc.

May 23 2016, 4:40 PM · Feature Request, gnupg

May 20 2016

languitar added a comment to T2298: Unblocking a smartcard PIN not possible in 2.1.

is there any way to get better debug output so this can be tracked down?

May 20 2016, 2:31 PM · Info Needed, gnupg, scd, Bug Report
gniibe added a comment to T2298: Unblocking a smartcard PIN not possible in 2.1.

Thank you for the version information which worked.

Speaking of the code of scdaemon, there is no difference for unblocking (by
resetcode and by admin) between 2.1.11/12 and 2.0.30.

Please note that there are two subcommands.

    admin -> passwd -> 2: unblocking by Admin
    unblock: unblocking by resetcode

Latter requires setting resetcode beforehand.

May 20 2016, 12:46 PM · Info Needed, gnupg, scd, Bug Report
languitar added a comment to T2298: Unblocking a smartcard PIN not possible in 2.1.

This was possible on my mac with:

gpg (GnuPG) 2.0.30
libgcrypt 1.7.0
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA, RSA, ELG, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,

CAMELLIA128, CAMELLIA192, CAMELLIA256

Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

May 20 2016, 10:54 AM · Info Needed, gnupg, scd, Bug Report

May 19 2016

noEntry closed T2234: Core dump while calling bkuptocard as Resolved.
May 19 2016, 11:48 PM · Bug Report, gnupg
noEntry reopened T2234: Core dump while calling bkuptocard as "Open".
May 19 2016, 11:48 PM · Bug Report, gnupg
noEntry added a comment to T2234: Core dump while calling bkuptocard.

Issue is resolved

May 19 2016, 11:48 PM · Bug Report, gnupg
noEntry removed a project from T2234: Core dump while calling bkuptocard: Restricted Project.
May 19 2016, 11:47 PM · Bug Report, gnupg
noEntry closed T2234: Core dump while calling bkuptocard as Resolved.
May 19 2016, 11:47 PM · Bug Report, gnupg
werner added a comment to T2362: pretty printing time left to expiration.

FWIW: pretty printing a time has a problem with i18n. It is too different for
gettext to handle.

May 19 2016, 10:22 AM · gnupg, Feature Request
werner closed T2356: Typo in man gpg ("teh") as Resolved.
May 19 2016, 10:20 AM · Bug Report, gnupg
werner added projects to T2358: gnupg 2.1, gpg-agent crashing on 'assertion failed' (OS X, Homebrew): gnupg (gpg21), gpgagent, gnupg.
May 19 2016, 10:07 AM · gpgrt, Duplicate, gpgagent, gnupg (gpg21), Bug Report
werner added a comment to T2358: gnupg 2.1, gpg-agent crashing on 'assertion failed' (OS X, Homebrew).

Thanks. I need a stack backtrace to find the location of the cause.
Please start gpg-agent using:

  gpg-connect-agent /bye

The figure out the PID of the gpg-agent process and run

  gdb /usr/local/bin/gpg-agent PID

At the gdb prompt enter

  handle SIGPIPE nostop noprint pass
  c

The "c" continues operation of gpg-agent. In another terminal run

  gpg2 --sign

as done in your example. GDB in the first terminal will eventually
stop due to the assert. Enter at the gdb prompt:

  bt

and post the output. I would also like to know which version of
libgpg-error you are using:

  gpg-error --version

should show this (or use gpg-error-config --version).

May 19 2016, 10:07 AM · gpgrt, Duplicate, gpgagent, gnupg (gpg21), Bug Report
gniibe added a comment to T2298: Unblocking a smartcard PIN not possible in 2.1.

Here is another session after another three times failure.

This time, unblock by admin with Admin PIN.

$ gpg --card-edit

Reader ...........: Free Software Initiative of Japan Gnuk (FSIJ-1.1.9-87021534)
00 00
Application ID ...: D276000124010200FFFE870215340000
Version ..........: 2.0
Manufacturer .....: unmanaged S/N range
Serial number ....: 87021534
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: rsa4096 rsa4096 rsa4096
Max. PIN lengths .: 127 127 127
PIN retry counter : 0 3 3
Signature counter : 6
Signature key ....: 6E9A 631F 1997 F37C 7F4E 9952 8916 1D16 AA0D B710

created ....: 2016-05-19 05:09:13

Encryption key....: 0138 70C9 FA89 986F 2784 31A9 8AAA 8F21 ABD4 A70C

created ....: 2016-05-19 05:09:13

Authentication key: B2FE 8DAF 9494 3320 760F 38E2 30F6 A992 6870 02D6

created ....: 2016-05-19 05:11:14

General key info..: pub rsa4096/AA0DB710 2016-05-19 Chuji Kunisada
<chuji@gniibe.org>
sec> rsa4096/AA0DB710 created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/ABD4A70C created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/687002D6 created: 2016-05-19 expires: never

                        card-no: FFFE 87021534

gpg/card> admin
Admin commands are allowed

gpg/card> passwd
gpg: OpenPGP card no. D276000124010200FFFE870215340000 detected

1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit

Your selection? 2

[ Admin PIN ]
[ New PIN ]
[ Repeat New PIN ]

PIN unblocked and new PIN set.

1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit

Your selection? q

gpg/card>

Reader ...........: Free Software Initiative of Japan Gnuk (FSIJ-1.1.9-87021534)
00 00
Application ID ...: D276000124010200FFFE870215340000
Version ..........: 2.0
Manufacturer .....: unmanaged S/N range
Serial number ....: 87021534
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: rsa4096 rsa4096 rsa4096
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 3 3
Signature counter : 6
Signature key ....: 6E9A 631F 1997 F37C 7F4E 9952 8916 1D16 AA0D B710

created ....: 2016-05-19 05:09:13

Encryption key....: 0138 70C9 FA89 986F 2784 31A9 8AAA 8F21 ABD4 A70C

created ....: 2016-05-19 05:09:13

Authentication key: B2FE 8DAF 9494 3320 760F 38E2 30F6 A992 6870 02D6

created ....: 2016-05-19 05:11:14

General key info..: pub rsa4096/AA0DB710 2016-05-19 Chuji Kunisada
<chuji@gniibe.org>
sec> rsa4096/AA0DB710 created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/ABD4A70C created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/687002D6 created: 2016-05-19 expires: never

                        card-no: FFFE 87021534

$

May 19 2016, 8:25 AM · Info Needed, gnupg, scd, Bug Report
gniibe added a project to T2298: Unblocking a smartcard PIN not possible in 2.1: Info Needed.
May 19 2016, 8:24 AM · Info Needed, gnupg, scd, Bug Report
gniibe changed Version from 2.1.11 to 2.1.11,2.1.12 on T2298: Unblocking a smartcard PIN not possible in 2.1.
May 19 2016, 8:24 AM · Info Needed, gnupg, scd, Bug Report
gniibe added a comment to T2298: Unblocking a smartcard PIN not possible in 2.1.

My case with Gnuk Token.
First, I intentionally input wrong PIN for singing three times.
Then, I invoke gpg --card-edit (with 2.1.2 on Debian experimental) to unblock
the token by resetcode.

$ gpg --card-edit

Reader ...........: Free Software Initiative of Japan Gnuk (FSIJ-1.1.9-87021534)
00 00
Application ID ...: D276000124010200FFFE870215340000
Version ..........: 2.0
Manufacturer .....: unmanaged S/N range
Serial number ....: 87021534
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: rsa4096 rsa4096 rsa4096
Max. PIN lengths .: 127 127 127
PIN retry counter : 0 2 3
Signature counter : 6
Signature key ....: 6E9A 631F 1997 F37C 7F4E 9952 8916 1D16 AA0D B710

created ....: 2016-05-19 05:09:13

Encryption key....: 0138 70C9 FA89 986F 2784 31A9 8AAA 8F21 ABD4 A70C

created ....: 2016-05-19 05:09:13

Authentication key: B2FE 8DAF 9494 3320 760F 38E2 30F6 A992 6870 02D6

created ....: 2016-05-19 05:11:14

General key info..: pub rsa4096/AA0DB710 2016-05-19 Chuji Kunisada
<chuji@gniibe.org>
sec> rsa4096/AA0DB710 created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/ABD4A70C created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/687002D6 created: 2016-05-19 expires: never

                        card-no: FFFE 87021534

gpg/card> unblock
gpg: OpenPGP card no. D276000124010200FFFE870215340000 detected

[ Resetcode ]
[ New PIN ]
[ Repeat New PIN ]

PIN changed.

gpg/card>

Reader ...........: Free Software Initiative of Japan Gnuk (FSIJ-1.1.9-87021534)
00 00
Application ID ...: D276000124010200FFFE870215340000
Version ..........: 2.0
Manufacturer .....: unmanaged S/N range
Serial number ....: 87021534
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: rsa4096 rsa4096 rsa4096
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 3 3
Signature counter : 6
Signature key ....: 6E9A 631F 1997 F37C 7F4E 9952 8916 1D16 AA0D B710

created ....: 2016-05-19 05:09:13

Encryption key....: 0138 70C9 FA89 986F 2784 31A9 8AAA 8F21 ABD4 A70C

created ....: 2016-05-19 05:09:13

Authentication key: B2FE 8DAF 9494 3320 760F 38E2 30F6 A992 6870 02D6

created ....: 2016-05-19 05:11:14

General key info..: pub rsa4096/AA0DB710 2016-05-19 Chuji Kunisada
<chuji@gniibe.org>
sec> rsa4096/AA0DB710 created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/ABD4A70C created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/687002D6 created: 2016-05-19 expires: never

                        card-no: FFFE 87021534

gpg/card> quit

Please note that 'unblock' subcommand is to unblock with resetcode.

May 19 2016, 8:24 AM · Info Needed, gnupg, scd, Bug Report

May 18 2016

aheinecke added projects to T2364: gen-key --batch does not support certify only keys: KDE, Feature Request, gnupg.
May 18 2016, 5:33 PM · gnupg, Feature Request, KDE
aheinecke set Version to master on T2364: gen-key --batch does not support certify only keys.
May 18 2016, 5:33 PM · gnupg, Feature Request, KDE
aheinecke set External Link to https://bugs.kde.org/show_bug.cgi?id=363148 on T2364: gen-key --batch does not support certify only keys.
May 18 2016, 5:33 PM · gnupg, Feature Request, KDE
neal updated subscribers of T2363: warn user about private key's expiration.
May 18 2016, 5:12 PM · gnupg, Feature Request
neal added projects to T2363: warn user about private key's expiration: Feature Request, gnupg.
May 18 2016, 5:12 PM · gnupg, Feature Request
mstan renamed T2362: pretty printing time left to expiration from warn user about key's expiration to pretty printing time left to expiration.
May 18 2016, 5:02 PM · gnupg, Feature Request
mstan added a comment to T2362: pretty printing time left to expiration.

That might be an option like '--pretty-expiration KEYID' that simply outputs in
a human readable format how much time is left before the key KEYID expires. That
simply saves the user from doing id mentally. Furthermore, the output could also
be made script-eatable

May 18 2016, 5:02 PM · gnupg, Feature Request
mstan added projects to T2362: pretty printing time left to expiration: Feature Request, gnupg.
May 18 2016, 4:57 PM · gnupg, Feature Request
rygpeter added a comment to T2356: Typo in man gpg ("teh").

After a release upgrade, in "gnupg 1.4.20-1ubuntu3 amd64", this typo disappeared
(I see "the").
For myself, this issue can be closed.

May 18 2016, 2:49 PM · Bug Report, gnupg
gniibe added a comment to T2298: Unblocking a smartcard PIN not possible in 2.1.

For some reason, I can't reproduce your problem in 2.1.x. Isn't it a problem of
your smartcard implementation?
Please describe the specific version number of GnuPG which is possible to
unblock this particular implementation of smartcard.

May 18 2016, 1:18 PM · Info Needed, gnupg, scd, Bug Report

May 17 2016

aheinecke added a comment to T2359: Query which key will be used for a given mailbox.

The algorithm I'm using now to detect the best key from a locate-keys result is
(Q_FOREACH just means "iterate over all elements in this list"):

Key keyC; /* The key candidate */
UserID uidC; /* The uid candidate */
Q_FOREACH (const Key k, keys) {

if (canEncrypt && !k.canEncrypt()) {
    continue;
}
/* First get the uid that matches the mailbox */
Q_FOREACH (const UserID u, k.userIDs()) {
    if (QString::fromUtf8(u.email()).toLower() == mailbox.toLower()) {
        if (uidC.isNull()) {
            keyC = k;
            uidC = u;
        } else if ((!uidIsOk(uidC) && uidIsOk(u)) || uidC.validity() <

u.validity()) {

            /* Validity of the new key is better. */
            uidC = u;
            keyC = k;
        } else if (uidC.validity() == u.validity() && uidIsOk(u)) {
            /* Both are the same check which one is newer. */
            time_t oldTime = 0;
            Q_FOREACH (const Subkey s, keyC.subkeys()) {
                if ((canEncrypt && s.canEncrypt()) && subkeyIsOk(s)) {
                    oldTime = s.creationTime();
                }
            }
            time_t newTime = 0;
            Q_FOREACH (const Subkey s, k.subkeys()) {
                if ((canEncrypt && s.canEncrypt()) && subkeyIsOk(s)) {
                    newTime = s.creationTime();
                }
            }
            if (newTime > oldTime) {
                uidC = u;
                keyC = k;
            }
        }
    }
}

}

The helper functions to check if a key / subkey / uid is ok are just:

static bool keyIsOk(const Key k)
{

return !k.isExpired() && !k.isRevoked() && !k.isInvalid() && !k.isDisabled();

}

static bool uidIsOk(const UserID uid)
{

return keyIsOk(uid.parent()) && !uid.isRevoked() && !uid.isInvalid();

}

static bool subkeyIsOk(const Subkey s)
{

return !s.isRevoked() && !s.isInvalid() && !s.isDisabled();

}

May 17 2016, 4:07 PM · gnupg (gpg22), gnupg, Feature Request
rygpeter added a comment to T2356: Typo in man gpg ("teh").

1.4.18-7ubuntu1

May 17 2016, 3:41 PM · Bug Report, gnupg
rygpeter added a comment to T2356: Typo in man gpg ("teh").

$ dpkg-query -l gnupg
Desired=Unknown/Install/Remove/Purge/Hold

Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
/ Name Version Architecture Description

+++-===================-==============-==============-============================================
ii gnupg 1.4.18-7ubuntu amd64 GNU privacy guard - a free
PGP replacement

May 17 2016, 3:39 PM · Bug Report, gnupg
werner added a comment to T2356: Typo in man gpg ("teh").

Which GnuPG version?

May 17 2016, 2:26 PM · Bug Report, gnupg
werner placed T2276: keyring_search failed and failed to rebuild keyring cache: Legacy key up for grabs.
May 17 2016, 1:49 PM · Bug Report, gnupg, gnupg (gpg21)
aheinecke updated subscribers of T2359: Query which key will be used for a given mailbox.
May 17 2016, 12:24 PM · gnupg (gpg22), gnupg, Feature Request
aheinecke removed a project from T2359: Query which key will be used for a given mailbox: Bug Report.
May 17 2016, 12:24 PM · gnupg (gpg22), gnupg, Feature Request
aheinecke added a project to T2359: Query which key will be used for a given mailbox: Feature Request.
May 17 2016, 12:24 PM · gnupg (gpg22), gnupg, Feature Request
aheinecke updated subscribers of T2359: Query which key will be used for a given mailbox.
May 17 2016, 11:59 AM · gnupg (gpg22), gnupg, Feature Request
aheinecke added projects to T2359: Query which key will be used for a given mailbox: gnupg (gpg21), gnupg, Bug Report.
May 17 2016, 11:59 AM · gnupg (gpg22), gnupg, Feature Request
aheinecke set Version to master on T2359: Query which key will be used for a given mailbox.
May 17 2016, 11:59 AM · gnupg (gpg22), gnupg, Feature Request

May 15 2016

languitar added a comment to T2298: Unblocking a smartcard PIN not possible in 2.1.

Sorry for the delay. Here is the complete log:

  • SNIP ---

languitar@bird ~> gpg --card-edit

Reader ...........: REINER SCT cyberJack RFID standard (XXXXX) 00 00
Application ID ...: XXXXXX
Version ..........: 2.0
Manufacturer .....: Yubico
Serial number ....: XXXXXX
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: forced
Key attributes ...: rsa2048 rsa2048 rsa2048
Max. PIN lengths .: 127 127 127
PIN retry counter : 0 3 3
Signature counter : 3
Signature key ....: Some Stuff

created ....: Some Stuff

Encryption key....: Some Stuff

created ....: Some Stuff

Authentication key: Some Stuff

created ....: Some Stuff

General key info..: pub rsa2048/0xXXXXXXXXXXXXX somedate somename
<somemail@example.org>
sec> rsa2048/0xXXXXXXXXXXXXXXXX created: somedate expires: never

card-no: 0006 XXXXXX

ssb> rsa2048/0xXXXXXXXXXXXXXXXX created: somedate expires: never

card-no: 0006 XXXXXX

ssb> rsa2048/0xXXXXXXXXXXXXXXXX created: somedate expires: never

                                  card-no: 0006 XXXXXX

gpg/card> admin
Admin commands are allowed

gpg/card> unblock

[GUI asks for admin PIN and new PIN, which I entered]

gpg: OpenPGP card no. XXXXXX detected
Error changing the PIN: Conditions of use not satisfied

gpg/card> passwd
gpg: OpenPGP card no. XXXXXX detected

1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit

Your selection? 2
Error unblocking the PIN: Conditions of use not satisfied

1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit

Your selection? q

gpg/card> q
languitar@bird ~> gpg --version
gpg (GnuPG) 2.1.12
libgcrypt 1.7.0
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,

CAMELLIA128, CAMELLIA192, CAMELLIA256

Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
languitar@bird ~> uname -a
Linux bird 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64 GNU/Linux

  • SNIP ---

Same thing works without problems using an older version of GPG on my mac.

May 15 2016, 8:40 PM · Info Needed, gnupg, scd, Bug Report

May 13 2016

rygpeter added projects to T2356: Typo in man gpg ("teh"): gnupg, Bug Report.
May 13 2016, 6:54 PM · Bug Report, gnupg
lorenz added a comment to T2230: gpgsm decryption with smartcard fails with "Invalid session key".

Anything else I can do to help?

May 13 2016, 10:12 AM · Restricted Project, gnupg, Bug Report, scd, S/MIME

May 12 2016

gp_ast added a comment to T2276: keyring_search failed and failed to rebuild keyring cache: Legacy key.

We had the same effect here and it was caused by a V3 public key in the
keyring.
This key does not show up while listing the public keys with GnuPG 2.1.12. We
could only identify and remove it by accessing the keyring with a GnuPG 1.4.x
installation.
It should be considered to either

  • display the key also during the list-keys command (to help the user to track

down the problem)
or

  • ignore it silently while building the trust db.
May 12 2016, 5:57 PM · Bug Report, gnupg, gnupg (gpg21)
dranft renamed T2355: --import of a keypair together with --batch results in no pinentry and i/o errors from --import of a keypair together with --batch and --homedir results in no pinentry and i/o errors to --import of a keypair together with --batch results in no pinentry and i/o errors.
May 12 2016, 3:07 PM · Bug Report, gpgagent, gnupg (gpg21), Windows, gnupg, Windows 32, pinentry
dranft added a comment to T2355: --import of a keypair together with --batch results in no pinentry and i/o errors.

PS: forget the --homedir thing, it is even reprodicable in the default folder in
%appdata%.

May 12 2016, 3:07 PM · Bug Report, gpgagent, gnupg (gpg21), Windows, gnupg, Windows 32, pinentry
dranft added a comment to T2355: --import of a keypair together with --batch results in no pinentry and i/o errors.

Sorry, forgot my import cmdline:

C:\Program Files (x86)\GNU\GnuPG\2.1.12\bin>gpg --batch --homedir
%tmp%\_tempKeyring --import "P:\2EEC2B65A2B4B3EF.sec.asc"
gpg: Die "Keybox" `C:/Users/ranftd/AppData/Local/Temp/_tempKeyring/pubring.kbx'
wurde erstellt
gpg: C:/Users/ranftd/AppData/Local/Temp/_tempKeyring/trustdb.gpg: trust-db erzeugt
gpg: Schlüssel A2B4B3EF: Öffentlicher Schlüssel "Daniel Ranft (Giegerich &
Partner GmbH)" importiert
gpg: Schlüssel A2B4B3EF: "Daniel Ranft (Giegerich & Partner GmbH)" nicht geändert
gpg: Schlüssel A2B4B3EF: geheimer Schlüssel importiert
gpg: Anzahl insgesamt bearbeiteter Schlüssel: 4
gpg: importiert: 1
gpg: unverändert: 1
gpg: gelesene geheime Schlüssel: 3
gpg: unveränderte geh. Schl.: 2
gpg: keine ultimativ vertrauenswürdigen Schlüssel gefunden

May 12 2016, 3:00 PM · Bug Report, gpgagent, gnupg (gpg21), Windows, gnupg, Windows 32, pinentry
dranft set Version to 2.1.12 on T2355: --import of a keypair together with --batch results in no pinentry and i/o errors.
May 12 2016, 2:58 PM · Bug Report, gpgagent, gnupg (gpg21), Windows, gnupg, Windows 32, pinentry
dranft added projects to T2355: --import of a keypair together with --batch results in no pinentry and i/o errors: pinentry, Windows 32, gnupg, Windows, gnupg (gpg21), gpgagent, Bug Report.
May 12 2016, 2:58 PM · Bug Report, gpgagent, gnupg (gpg21), Windows, gnupg, Windows 32, pinentry

May 11 2016

werner closed T2193: keyring / keybox race as Resolved.
May 11 2016, 10:04 PM · Bug Report, gnupg
werner removed a project from T2193: keyring / keybox race: Restricted Project.
May 11 2016, 10:04 PM · Bug Report, gnupg
werner removed a project from T2353: Decryption error: open(CONOUT$) failed: Bug Report.
May 11 2016, 10:02 PM · Support, gnupg
werner closed T2353: Decryption error: open(CONOUT$) failed as Invalid.
May 11 2016, 10:02 PM · Support, gnupg
werner added a comment to T2353: Decryption error: open(CONOUT$) failed.

Please ask on the gnupg-users mailibng list for help.

May 11 2016, 10:02 PM · Support, gnupg
werner lowered the priority of T2353: Decryption error: open(CONOUT$) failed from High to Normal.
May 11 2016, 10:02 PM · Support, gnupg
werner added a project to T2353: Decryption error: open(CONOUT$) failed: Support.
May 11 2016, 10:02 PM · Support, gnupg
Ordell971 added projects to T2353: Decryption error: open(CONOUT$) failed: gnupg, Bug Report.
May 11 2016, 6:41 PM · Support, gnupg
gniibe added a comment to T2351: Segfault in gpg --update-trustdb.

Fixed in 83a90a916e8e2f8e44c3b11d11e1dd75f65a87fb (master).

May 11 2016, 12:41 PM · Bug Report, gnupg
gniibe closed T2351: Segfault in gpg --update-trustdb as Resolved.
May 11 2016, 12:41 PM · Bug Report, gnupg
gniibe added a project to T2351: Segfault in gpg --update-trustdb: Unreleased.
May 11 2016, 12:41 PM · Bug Report, gnupg
Feandil added a comment to T2351: Segfault in gpg --update-trustdb.

This patch seems to solve the segfault for me, thanks!

May 11 2016, 12:23 PM · Bug Report, gnupg
gniibe added a comment to T2351: Segfault in gpg --update-trustdb.

Thank you for the report and your cooperation.
At least, this fix is needed.

May 11 2016, 12:12 PM · Bug Report, gnupg
gniibe added a comment to T2351: Segfault in gpg --update-trustdb.

D367: 835_sig-check-correction.diff

May 11 2016, 12:12 PM · Bug Report, gnupg
Feandil added a comment to T2351: Segfault in gpg --update-trustdb.

Include trace.log

May 11 2016, 11:33 AM · Bug Report, gnupg
Feandil added a comment to T2351: Segfault in gpg --update-trustdb.

May 11 2016, 11:33 AM · Bug Report, gnupg
Feandil set Version to 2.1.12 on T2351: Segfault in gpg --update-trustdb.
May 11 2016, 11:32 AM · Bug Report, gnupg
Feandil added projects to T2351: Segfault in gpg --update-trustdb: gnupg, Bug Report.
May 11 2016, 11:32 AM · Bug Report, gnupg

May 10 2016

werner added a project to T2246: Regression: home dir no longer automatically created: Unreleased.
May 10 2016, 11:41 AM · Bug Report, gnupg
werner closed T2246: Regression: home dir no longer automatically created as Resolved.
May 10 2016, 11:41 AM · Bug Report, gnupg
werner removed a project from T2246: Regression: home dir no longer automatically created: Restricted Project.
May 10 2016, 11:41 AM · Bug Report, gnupg
werner added a comment to T2324: gpg --batch --export-secret-key fails (requires user interaction) if key has no passphrase.

re: T2324 (justus on Apr 18 2016, 05:22 PM / Roundup)

  1. gpg --export-secret-key should export unprotected keys that are stored w/o a passphrase"

That would violate the policy we implement in gpg-agent. The
gpg-agent is responsible for private keys and a client may not use a
private key without the agent's consent. If we would allow that by
default there won't be any protection at all and keys can be easily
exported and used. A required confirmation via the Pinentry would
solve the practical problem. However, there is the question what to
do on unattended systems - the only way it can be done right now is
configuring gpg-agent to use a custom pinentry, or by extending the
loopback mode.

May 10 2016, 10:13 AM · gnupg, OpenPGP, Bug Report
werner added projects to T2332: Cannot authenticate with LDAP keyserver: dirmngr, gnupg.
May 10 2016, 8:36 AM · gnupg, dirmngr, Bug Report

May 9 2016

werner added a comment to T2236: Importing a key with badly ordered packets doesn't reorder it, and while --edit-key does reorder it doesn't move the signature packets to the right place.

I see. I just pushed two fixes.

May 9 2016, 9:17 PM · gnupg (gpg22), Bug Report
werner added a comment to T2246: Regression: home dir no longer automatically created.

Thanks. Fix released with 2.0.30 and 2.1.12.
We can close this bug after the release of 1.4.21

May 9 2016, 8:46 PM · Bug Report, gnupg
gniibe added a comment to T2246: Regression: home dir no longer automatically created.

Fixed in all branches.

Master 2.1: d9f9b3be036747c9f55060aed47896f951bfb853
1.4: d957e4388f72581b1ec801613b5629b5ea3f586d
2.0: eb7806d63df63663170ba86f0673caa34b944c28

For some reason, the commit messages of 1.4 and 2.0 refers
master commit of 2f3e42047d17313eeb38d354048f343158402a8d.
Perhaps, I did in my repo and it was 2f3e420 and apply it to 1.4 and 2.0.
Then, I pushed 1.4, 2.0, and 2.1. and 2.1 was failed because of
non-fast-forward. Then I rebased for 2.1.

May 9 2016, 4:18 AM · Bug Report, gnupg
gniibe set Version to 1.4.20,2.0.29,2.1.11 on T2246: Regression: home dir no longer automatically created.
May 9 2016, 4:18 AM · Bug Report, gnupg