Page MenuHome GnuPG
Feed All Stories

Dec 17 2018

aheinecke created T4292: gpgsm: Problems with OCSP validation / No CRL known for OCSP Cert id-pkix-ocsp-nocheck?.
Dec 17 2018, 8:44 AM · S/MIME
aheinecke closed T4291: Bug from Kleopatra as Invalid.

that error means that the message was somehow corrupted during transfer. Are you maybe using ftp in text mode on a binary message for example?
You could ask your communication partner to send you messages in text (ASCII Armor) mode which is more robust.
In Kleopatra you can change that in Settings -> Configure Kleopatra -> Crypto Operations -> Create signed or encrypted files as text files.
On the command line you need to add "--armor" option.

Dec 17 2018, 8:37 AM · Bug Report, gpg4win
aheinecke added a comment to T4248: gpg-agent: Rare unresponsiveness after importing a secret S/MIME cert on Windows.

In Wald someone reports that this also appears to happen when decrypting. https://wald.intevation.org/forum/message.php?msg_id=6377 Probably run-threaded will help to flush this out.

Dec 17 2018, 8:33 AM · S/MIME, gnupg (gpg22), gpgagent, gpg4win
aheinecke added a comment to T4116: Kleopatra: Hang on posix with GPGME_DEBUG=9.

Even with the logging changes this still happens. I just retested it. Can't run Kleopatra on Linux with GPGME_DEBUG=9.

Dec 17 2018, 8:29 AM · kleopatra, gpgme
Laurent Montel <montel@kde.org> committed rKLEOPATRAe3a467d6221d: Remove QT_CHECK (authored by Laurent Montel <montel@kde.org>).
Remove QT_CHECK
Dec 17 2018, 8:13 AM
Laurent Montel <montel@kde.org> committed rKLEOPATRA6a4d47620211: GIT_SILENT: Increase Qt to Qt5.10.0 (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: Increase Qt to Qt5.10.0
Dec 17 2018, 7:05 AM
gniibe added a comment to T4288: Add getrandom support for the BSDs.

In FreeBSD, getrandom(3) became available, when getrandom(2) was added. <-- This is my theory.
If this is true, just use getrandom(3), not using getrandom(2) by syscall.

Dec 17 2018, 5:20 AM · libgcrypt
gniibe added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

It became common, because many people now use larger keys.
For RSA-4096, three simultaneous connections for decryption may cause the failure.
In the experimental patch of D472: Limit active connections for gpg-agent, I limit gpg-agent to accept two connections only.

Dec 17 2018, 5:08 AM · gnupg, gpgagent
gniibe updated the diff for D472: Limit active connections for gpg-agent.

increment the counter is better done by the looping main thread.

Dec 17 2018, 3:54 AM
l10n daemon script <scripty@kde.org> committed rKLEOPATRAb2f944f32fa6: GIT_SILENT made messages (after extraction) (authored by l10n daemon script <scripty@kde.org>).
GIT_SILENT made messages (after extraction)
Dec 17 2018, 3:14 AM
gniibe added a comment to D472: Limit active connections for gpg-agent.

This is an experimental patch. So, I just reuse SIGUSR1 to wake up "select"-ing thread by kill(2).
I put limit-active-connections 2 in gpg-agent.conf for the test with run-threaded of gpgme.

Dec 17 2018, 2:48 AM
gniibe created D472: Limit active connections for gpg-agent.
Dec 17 2018, 2:46 AM

Dec 16 2018

andy added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

Agreed this looks like it should be made default behavior. This has affected many people I work with, and even with searching, this ticket never came up. I only found out about it by making a ticket myself. This issue looks like it has generated at least 3 tickets in this bug tracker, and the agent is raising memory errors during normal usage, which still smells like a bug to me.

Dec 16 2018, 8:18 PM · gnupg, gpgagent
l10n daemon script <scripty@kde.org> committed rKLEOPATRAc78bdb11d2f0: GIT_SILENT made messages (after extraction) (authored by l10n daemon script <scripty@kde.org>).
GIT_SILENT made messages (after extraction)
Dec 16 2018, 7:36 AM
BenM committed rMfbc298dc1b0f: python: howto and examples (authored by BenM).
python: howto and examples
Dec 16 2018, 7:16 AM
iAlpha created T4291: Bug from Kleopatra.
Dec 16 2018, 12:46 AM · Bug Report, gpg4win

Dec 15 2018

BenM added a comment to T3505: Port GPGME's Python bindings to Windows.

Though not directly related to our issues, this bug report on the MSYS2 site reported by their users encountering trouble with GPGME provides additional weight to irreconcilable differences between MSYS2 and GnuPG:

Dec 15 2018, 8:18 PM · Feature Request, gpgme, Python
werner created T4290: Release GnuPG 2.2.13.
Dec 15 2018, 4:39 PM · Release Info, gnupg (gpg22)

Dec 14 2018

wheelerlaw edited projects for T3065: dirmngr: proxy issues with dnslookup causing failure, added: gnupg (gpg22); removed FAQ.
Dec 14 2018, 7:29 PM · gnupg (gpg22), dns, dirmngr
wheelerlaw added a comment to T3065: dirmngr: proxy issues with dnslookup causing failure.

So if your DNS resolver does not tell us the IP addresses, we can't do anything about it.

Dec 14 2018, 7:25 PM · gnupg (gpg22), dns, dirmngr
werner committed rDb4b0f718320c: drafts,openpgp-webkey-service: A MUST not MUST be a MUST NOT. (authored by werner).
drafts,openpgp-webkey-service: A MUST not MUST be a MUST NOT.
Dec 14 2018, 5:42 PM
werner committed rD0eaf5090fd44: web: News about 2.2.12 (authored by werner).
web: News about 2.2.12
Dec 14 2018, 4:05 PM
werner closed T4289: GnuPG 2.1.12 release as Resolved.
Dec 14 2018, 4:01 PM · gnupg (gpg22), Release Info
werner closed T4289: GnuPG 2.1.12 release, a subtask of T4264: Gpg4win 3.1.6, as Resolved.
Dec 14 2018, 4:01 PM · Release Info, gpg4win
werner committed rD2ff9531591f9: swdb: Release GnuPG 2.2.12 (authored by werner).
swdb: Release GnuPG 2.2.12
Dec 14 2018, 3:50 PM
werner committed rG3520a7b1fcd8: Post release updates (authored by werner).
Post release updates
Dec 14 2018, 3:46 PM
werner committed rG7d8f4ee7cf56: Release 2.2.12 (authored by werner).
Release 2.2.12
Dec 14 2018, 3:46 PM
werner committed rG0ed37d023bae: po: Auto-update (authored by werner).
po: Auto-update
Dec 14 2018, 3:46 PM
werner added a comment to T4159: Kleopatra fails to create new Key Pair.

The usual reasons for corruptions of binary data are FTP transfers in text mode; or opening a file with a Windows editor.

Dec 14 2018, 2:56 PM · kleopatra, gnupg, Bug Report, gpg4win
werner added a comment to T4289: GnuPG 2.1.12 release.

NEWS are:

Dec 14 2018, 1:55 PM · gnupg (gpg22), Release Info
aheinecke added a comment to T4159: Kleopatra fails to create new Key Pair.

Got another reliable report in the Wald Forum about this. https://wald.intevation.org/forum/message.php?msg_id=6371&group_id=11

Dec 14 2018, 1:36 PM · kleopatra, gnupg, Bug Report, gpg4win
werner added a subtask for T4264: Gpg4win 3.1.6: T4289: GnuPG 2.1.12 release.
Dec 14 2018, 1:30 PM · Release Info, gpg4win
werner added a parent task for T4289: GnuPG 2.1.12 release: T4264: Gpg4win 3.1.6.
Dec 14 2018, 1:30 PM · gnupg (gpg22), Release Info
werner created T4289: GnuPG 2.1.12 release.
Dec 14 2018, 1:29 PM · gnupg (gpg22), Release Info
aheinecke added a comment to T4118: GpgOL: Mitigate S/MIME Denial of Service due to CRL stalling.

No I do not think so. Because that would already be currently the case. If you had a subverted Root CA of course you can attack. But we are only talking about CRL / OCSP here. A root CA that does not provide a CRL for certificate X is OK. As long as the Root CA that issued X issues a CRL for that. Well the usual CRL / OCSP denial of service is still possible but I don't see any subversion.

Dec 14 2018, 1:28 PM · gpg4win, gpgol
werner added a comment to T4118: GpgOL: Mitigate S/MIME Denial of Service due to CRL stalling.

Interesting idea but it does not help against attacks because all root CA are considered equal (virtually cross-signed). Thus a single not checked root CA allows to subvert all certificates.

Dec 14 2018, 1:26 PM · gpg4win, gpgol
aheinecke added a comment to T4118: GpgOL: Mitigate S/MIME Denial of Service due to CRL stalling.

I wonder if the best thing here might be another flag in the trustlist to disable CRL/OCSP checks for a single root certificate chain. I had such a request in the Gpg4win forums. Someone had a single unreacable CRL / OCSP and had to disable globally all checks for all other certs, too.

Dec 14 2018, 10:52 AM · gpg4win, gpgol
werner added a project to T4248: gpg-agent: Rare unresponsiveness after importing a secret S/MIME cert on Windows: S/MIME.
Dec 14 2018, 10:46 AM · S/MIME, gnupg (gpg22), gpgagent, gpg4win
werner committed rD18b09effc2b8: drafts,openpgp-webkey-service: Remark on 401 server responses. (authored by werner).
drafts,openpgp-webkey-service: Remark on 401 server responses.
Dec 14 2018, 10:04 AM
werner committed rD733acdda1a44: drafts,openpgp-webkey-service: Fix flaws in the last revision. (authored by werner).
drafts,openpgp-webkey-service: Fix flaws in the last revision.
Dec 14 2018, 10:04 AM
werner committed rG35a91f1409c3: New simplified Chinese translation (authored by Chuhao Li <lchopn@gmail.com>).
New simplified Chinese translation
Dec 14 2018, 8:38 AM

Dec 13 2018

BenM committed rM4308d172816f: python: examples bugfix (authored by BenM).
python: examples bugfix
Dec 13 2018, 7:21 PM
werner committed rDa51e1d2bf99a: Add note about wildcard DNS. (authored by werner).
Add note about wildcard DNS.
Dec 13 2018, 7:14 PM
werner created T4288: Add getrandom support for the BSDs.
Dec 13 2018, 4:29 PM · libgcrypt
gniibe closed T4177: card: After "forcesig" command makes card "not forced", signing fails by: Bad PIN as Resolved.
Dec 13 2018, 3:44 PM · scd, gnupg (gpg22)
gniibe closed T3880: gpg-agent's ssh-agent does not handle flags in signing requests properly as Resolved.
Dec 13 2018, 3:42 PM · ssh, gpgagent, Bug Report
gniibe closed T4232: gpgrt-config Gentoo/Fedora/Arch/Slackware-style multilib support as Resolved.
Dec 13 2018, 3:38 PM · gpgrt
gniibe closed T4232: gpgrt-config Gentoo/Fedora/Arch/Slackware-style multilib support, a subtask of T4217: {libksba,libgcrypt,ntbtls,libassuan,npth}.m4, {libksba,libgcrypt,ntbtls,libassuan}-config script and gpg-error-config, as Resolved.
Dec 13 2018, 3:38 PM · npth, libassuan, ntbtls, libgcrypt, libksba
werner committed rA1f038e94e19d: Post release updates (authored by werner).
Post release updates
Dec 13 2018, 10:46 AM
werner committed rA86e1d17de081: Release 2.5.2 (authored by werner).
Release 2.5.2
Dec 13 2018, 10:46 AM
kalle added a comment to T4282: info gnupg.

yes. that's why i wrote it in '['-brackets.
but usually, in info-documents a synopsis is written about it.
I think that it's not self-evident, that "you can either give a file or let the tool read from stdin or output to stdout" and therefore should be written explicitly.

Dec 13 2018, 9:41 AM · Feature Request, Documentation
werner claimed T4013: Certificate requests generated from Ed25519 keys are not compliant with draft-ietf-curdle-pkix.
Dec 13 2018, 9:38 AM · S/MIME, Feature Request, libksba
werner committed rD67dd939968ef: swdb: Release libassuan 2.5.2 (authored by werner).
swdb: Release libassuan 2.5.2
Dec 13 2018, 9:15 AM

Dec 12 2018

werner committed rD59a8fb52b17b: verein: Add a link to the token page. (authored by werner).
verein: Add a link to the token page.
Dec 12 2018, 9:12 PM
werner committed rD3ab409acd60d: verein: Start a project to develop a membership gadget (authored by werner).
verein: Start a project to develop a membership gadget
Dec 12 2018, 9:06 PM
BenM committed rM3849b60e2243: python: new example script (authored by BenM).
python: new example script
Dec 12 2018, 6:58 PM
pmgdeb added a comment to T4274: Fail selftests when checksum file is missing in FIPS mode only.

Adding the patch here.

Dec 12 2018, 5:30 PM · Restricted Project, libgcrypt, Bug Report
aheinecke created T4287: GpgOL: Incompatibility with Microsoft Azure Information Protection add-in.
Dec 12 2018, 4:08 PM · gpg4win, gpgol
BenM committed rM3ca7cf07f5d3: python: what's new summary (authored by BenM).
python: what's new summary
Dec 12 2018, 1:20 PM
BenM committed rM64758a0dac4c: python: advanced howto example (authored by BenM).
python: advanced howto example
Dec 12 2018, 1:07 PM
BenM committed rM4c324ac1beb7: python: howto examples equirements (authored by BenM).
python: howto examples equirements
Dec 12 2018, 1:04 PM
aheinecke added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

Uhm, if this option is useful why isn't it default behavior?

Dec 12 2018, 10:34 AM · gnupg, gpgagent
werner committed rC876f7280e860: secmem: Prepare for easier debugging. (authored by werner).
secmem: Prepare for easier debugging.
Dec 12 2018, 9:34 AM
werner added a project to T4198: Pinentry doesn't capture input correctly, crashes terminal instead: pinentry.
Dec 12 2018, 9:18 AM · pinentry, Bug Report
werner triaged T4105: Inconsistent output for revocation keys in --list-keys --with-colons as Normal priority.
Dec 12 2018, 9:17 AM · Documentation, gnupg, Bug Report
werner committed rE12349de46d24: estream: Use correct POSIX name THOUSEP. (authored by werner).
estream: Use correct POSIX name THOUSEP.
Dec 12 2018, 9:16 AM
werner triaged T4280: gnupg doc doesn't build due to ImageMagick default policy as Normal priority.
Dec 12 2018, 9:16 AM · gnupg, Documentation, Info Needed, Bug Report
werner closed T4286: Incorrect use of <langinfo.h> in libgpg-error as Resolved.

Thanks.

Dec 12 2018, 9:15 AM · Bug Report
werner claimed T4286: Incorrect use of <langinfo.h> in libgpg-error.
Dec 12 2018, 9:00 AM · Bug Report
miod created T4286: Incorrect use of <langinfo.h> in libgpg-error.
Dec 12 2018, 8:49 AM · Bug Report
werner closed T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP as Resolved.
Dec 12 2018, 8:30 AM · gnupg, gpgagent
werner closed T3606: failed to build S-Exp (off=0): Cannot allocate memory, a subtask of T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP, as Resolved.
Dec 12 2018, 8:30 AM · gnupg, gpgagent
werner closed T3606: failed to build S-Exp (off=0): Cannot allocate memory as Resolved.

T3530 describes the solution. In short: Put "auto-expand-secmem" into gpg-agent.conf.

Dec 12 2018, 8:30 AM · libgcrypt, Bug Report
werner closed T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key" as Resolved.
Dec 12 2018, 8:28 AM · gnupg (gpg22), MacOS, Bug Report
werner closed T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key", a subtask of T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP, as Resolved.
Dec 12 2018, 8:28 AM · gnupg, gpgagent
werner closed T3530: Option to auto-increase secmem in gpg-agent as Resolved.

The --auto-expand-secmem option is available in 2.2. and master for quite some time. It works if libgcrypt 1.8.2 or newer is used.

Dec 12 2018, 8:28 AM · Feature Request, gpgagent
werner closed T3530: Option to auto-increase secmem in gpg-agent, a subtask of T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP, as Resolved.
Dec 12 2018, 8:28 AM · gnupg, gpgagent
werner added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

Not a bug :-). I should have read my own docs before starting a long debug session. The things is that the auto expanding of the secmem area is only done for xmalloc_secure and the internal MPI allocation functions. It is not dne for any memory which is allocated with xtrymalloc becuase those properly return an error to the caller. The idea is that if the caller wants to get an error back he has also the assurance that them memory is allocated in the non-swappable memory (i.e. not in the expanded parts of the secmem).

Dec 12 2018, 8:24 AM · gnupg, gpgagent
gniibe closed T3351: libgcrypt: t_secmem fails on system with large page size (ppc64) as Resolved.
Dec 12 2018, 7:27 AM · libgcrypt, Bug Report
gniibe added a parent task for T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key": T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.
Dec 12 2018, 7:26 AM · gnupg (gpg22), MacOS, Bug Report
gniibe added a subtask for T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP: T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key".
Dec 12 2018, 7:26 AM · gnupg, gpgagent
gniibe added a subtask for T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP: T3606: failed to build S-Exp (off=0): Cannot allocate memory.
Dec 12 2018, 7:23 AM · gnupg, gpgagent
gniibe added a parent task for T3606: failed to build S-Exp (off=0): Cannot allocate memory: T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.
Dec 12 2018, 7:23 AM · libgcrypt, Bug Report
gniibe added a subtask for T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP: T3530: Option to auto-increase secmem in gpg-agent.
Dec 12 2018, 7:22 AM · gnupg, gpgagent
gniibe added a parent task for T3530: Option to auto-increase secmem in gpg-agent: T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.
Dec 12 2018, 7:22 AM · Feature Request, gpgagent
gniibe merged T3529: Connection limit for gpg-agent into T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.
Dec 12 2018, 7:16 AM · gnupg, gpgagent
gniibe merged task T3529: Connection limit for gpg-agent into T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.
Dec 12 2018, 7:16 AM · Feature Request, gnupg (gpg23), gpgagent
gniibe added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

For my case, with $GNUPGHOME/gpg-agent.conf having debug-all, I observed that rsa_decrypt failes with 'Cannot allocate memory', after debug output of 'res'.
Reading libgcrypt/cipher/rsa.c, it is line 1439, where it calls sexp_build (MPI of PLAIN into SEXP of R_PLAIN).
I think that it does indeed memory failure here.
Having "auto-expand-secmem" in gpg-agent.conf, it goes well.

Dec 12 2018, 3:47 AM · gnupg, gpgagent
gniibe committed rGebf775eb16fe: card: Suppress error message by agent_scd_cardlist. (authored by gniibe).
card: Suppress error message by agent_scd_cardlist.
Dec 12 2018, 2:29 AM

Dec 11 2018

werner added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

I can easily replicate this; it is a problem somewhere in the secure memory code of Libgcrypt.

Dec 11 2018, 9:08 PM · gnupg, gpgagent
werner triaged T4282: info gnupg as Low priority.
Dec 11 2018, 7:10 PM · Feature Request, Documentation
werner committed rGde29a50e7c8a: agent: Make the S2K calibration time runtime configurable. (authored by werner).
agent: Make the S2K calibration time runtime configurable.
Dec 11 2018, 6:16 PM
werner committed rG0cf0f3aaf835: agent: compile-time configuration of s2k calibration. (authored by dkg).
agent: compile-time configuration of s2k calibration.
Dec 11 2018, 6:16 PM
werner committed rGcbcc8c19541f: agent: Make the S2K calibration time runtime configurabe. (authored by werner).
agent: Make the S2K calibration time runtime configurabe.
Dec 11 2018, 6:13 PM
werner closed T4134: GnuPG: Changing the trust model once changes the default trust model as Resolved.

Fix was released with 2.2.11

Dec 11 2018, 3:51 PM · gpg4win, gpgol, Bug Report, gnupg
werner edited projects for T3065: dirmngr: proxy issues with dnslookup causing failure, added: FAQ; removed gnupg (gpg22).
Dec 11 2018, 3:48 PM · gnupg (gpg22), dns, dirmngr
werner added a comment to T3065: dirmngr: proxy issues with dnslookup causing failure.

If you specify a pool of keyservers dirmngr selects a keyserver on its won from the pool. This is so that it can use its own heuristics to detect whether a keyserver is dead and then retry another one. Now the default is a pool and your specified keyserver.ubuntu.com is also a pool (of two servers). So if your DNS resolver does not tell us the IP addresses, we can't do anything about it.

Dec 11 2018, 3:48 PM · gnupg (gpg22), dns, dirmngr
werner added a comment to T3972: 100% CPU usage endles loop of gpg --list-keys.

In your second run you added the options after the argument (4E2C6E8793298290) so they won't have an effect. Anyway, I can't see anything from the output. My way to debug that would be to run gpg under strace:

Dec 11 2018, 3:31 PM · gnupg (gpg22)
werner closed T4175: HTTP 5xx should fail over to the next server as Resolved.
Dec 11 2018, 3:05 PM · dirmngr, Feature Request
werner added a comment to T4175: HTTP 5xx should fail over to the next server.

Will go into 2.1.12 to be released next week.

Dec 11 2018, 3:05 PM · dirmngr, Feature Request