Page MenuHome GnuPG
Feed All Stories

Mar 20 2020

aheinecke committed rObec2188c30ac: Add string starts_with helpers (authored by aheinecke).
Add string starts_with helpers
Mar 20 2020, 12:29 PM
aheinecke created T4884: PKCS #15 support in gpgsm.
Mar 20 2020, 12:27 PM · Feature Request, gnupg, scd, S/MIME
aheinecke committed rOd0faa1986d3c: Automatically learn keys from smartcards (authored by aheinecke).
Automatically learn keys from smartcards
Mar 20 2020, 11:46 AM
aheinecke added a comment to T4883: gpgme X.509 certificates have unknown validity in offline mode unless `disable-crl-checks` is set.

Sample how GpgOL handles this: https://dev.gnupg.org/source/gpgol/browse/master/src/keycache.cpp;6f5f48c3d60e0af52f1a9f0e51f60ee653eeeb31$269

Mar 20 2020, 11:03 AM · Not A Bug, S/MIME, gpgme
aheinecke added a comment to T4883: gpgme X.509 certificates have unknown validity in offline mode unless `disable-crl-checks` is set.

I think what you're saying that there is *no way* to use GPGME in offline mode to validate x.509 certificates, and this is by design. Am I understanding that right?

Mar 20 2020, 11:00 AM · Not A Bug, S/MIME, gpgme
aheinecke added a parent task for T4877: GpgOL: Look for S/MIME sec keys on inserted smartcards if no key is available: T4789: Gpg4win-3.1.12.
Mar 20 2020, 10:55 AM · gpgol
aheinecke added a subtask for T4789: Gpg4win-3.1.12: T4877: GpgOL: Look for S/MIME sec keys on inserted smartcards if no key is available.
Mar 20 2020, 10:55 AM · gpg4win, Release Info
aheinecke changed the status of T4877: GpgOL: Look for S/MIME sec keys on inserted smartcards if no key is available from Open to Testing.

Done in master

Mar 20 2020, 10:55 AM · gpgol
werner committed rC15cba1515c56: doc: Map contributions to new surname (authored by lumag).
doc: Map contributions to new surname
Mar 20 2020, 9:09 AM
werner added a comment to T4883: gpgme X.509 certificates have unknown validity in offline mode unless `disable-crl-checks` is set.

After disabling the CRL check again in gpgsm.conf

Mar 20 2020, 8:56 AM · Not A Bug, S/MIME, gpgme

Mar 19 2020

dkg added a comment to T4883: gpgme X.509 certificates have unknown validity in offline mode unless `disable-crl-checks` is set.

I see no difference between the last two example stanzas that show you running ../run-verify. Are they supposed to have different output?

Mar 19 2020, 10:58 PM · Not A Bug, S/MIME, gpgme
dkg added a comment to T4881: "User ID" (Subject, subjectAltName) validity is inaccurate in gpgsm with sample certs..

I'm aware of the metadata leakage risks of OCSP, and i share your concerns about them.

Mar 19 2020, 10:14 PM · Not A Bug, gnupg (gpg22), S/MIME
werner added a comment to T4881: "User ID" (Subject, subjectAltName) validity is inaccurate in gpgsm with sample certs..

OCSP can't be the default because it enables a web bug. The responder immediately sees when a signature is verified or a data is encrypted to a certificate.

Mar 19 2020, 7:00 PM · Not A Bug, gnupg (gpg22), S/MIME
dkg added a comment to T4881: "User ID" (Subject, subjectAltName) validity is inaccurate in gpgsm with sample certs..

If CRLs or OCSP are a MUST in a given profile, and the cert chain has OCSP but no CRL, it seems like that profile should then try OCSP, rather than failing.

Mar 19 2020, 6:53 PM · Not A Bug, gnupg (gpg22), S/MIME
werner added a comment to T4883: gpgme X.509 certificates have unknown validity in offline mode unless `disable-crl-checks` is set.

That option does the same as --disable-dirmngr which in trun has the same effect as disable-crl-checks; see gnupg/sm/server.c#option_handler. If you want to check the validity of the cert you check the TRUST status lines. This is what gpgme does for you. An example is gpgme.tests/gpgsm/t-verify. You can run the tests also manually, I do this as follows:

Mar 19 2020, 6:25 PM · Not A Bug, S/MIME, gpgme
dkg added a comment to T4883: gpgme X.509 certificates have unknown validity in offline mode unless `disable-crl-checks` is set.

I think what you're saying that there is *no way* to use GPGME in offline mode to validate x.509 certificates, and this is by design. Am I understanding that right?

Mar 19 2020, 5:25 PM · Not A Bug, S/MIME, gpgme
dkg added a comment to T4882: gpgconf --homedir is ignored when setting options.

Thanks for the quick fix, @werner!

Mar 19 2020, 5:18 PM · gnupg (gpg22), Bug Report
werner committed rG67556218c0d4: po: Update German translation (authored by werner).
po: Update German translation
Mar 19 2020, 2:28 PM
werner edited projects for T4881: "User ID" (Subject, subjectAltName) validity is inaccurate in gpgsm with sample certs., added: Not A Bug; removed Bug Report.
Mar 19 2020, 1:07 PM · Not A Bug, gnupg (gpg22), S/MIME
werner edited projects for T4883: gpgme X.509 certificates have unknown validity in offline mode unless `disable-crl-checks` is set, added: Not A Bug; removed Bug Report.

I can see no bug here. See my comment over at T4881.

Mar 19 2020, 1:06 PM · Not A Bug, S/MIME, gpgme
werner closed T4882: gpgconf --homedir is ignored when setting options as Resolved.

Fixed.

Mar 19 2020, 1:02 PM · gnupg (gpg22), Bug Report
werner committed rGb92860a8b9d2: gpgconf: Take care of --homedir when reading/updating options. (authored by werner).
gpgconf: Take care of --homedir when reading/updating options.
Mar 19 2020, 1:02 PM
werner committed rGc1844ca7520f: gpgconf: Take care of --homedir when reading/updating options. (authored by werner).
gpgconf: Take care of --homedir when reading/updating options.
Mar 19 2020, 12:54 PM
mrdave19 added a comment to T4573: Files encrypted on another platform using password based encryption (-c) intermittently fail to decrypt on Kleopatra.

Hello,
Sorry for the late reply but with your help we found a bug in our code and it has been fixed. Thanks for your assistance!

Mar 19 2020, 12:28 PM · gnupg (gpg22), Bug Report
werner claimed T4882: gpgconf --homedir is ignored when setting options.

Arggh, this code is a whole mess (e.g. it uses its own logging code). I spent the last week to rework large parts of it for master. I am going to look into this case now.

Mar 19 2020, 12:00 PM · gnupg (gpg22), Bug Report
werner added a comment to T4881: "User ID" (Subject, subjectAltName) validity is inaccurate in gpgsm with sample certs..

If you want OCSP you need to enable it. CRLs or OCSP are a MUST under the profile we developed gpgsm. This is why --disable-crl-checks by default is not possible. There are lot of interesting things you will come across if you start to use S/MIME. For example you also need to care about the algorithms used for intermediate certificates used to sign CRLs - they need to comply to the policy as well. Or the rarely used PSS padding we encounter sometimes and which is not supported and will probably not be supported

Mar 19 2020, 11:56 AM · Not A Bug, gnupg (gpg22), S/MIME
werner closed T4573: Files encrypted on another platform using password based encryption (-c) intermittently fail to decrypt on Kleopatra as Resolved.

Okay. Thanks.

Mar 19 2020, 11:51 AM · gnupg (gpg22), Bug Report
gniibe added a comment to T4573: Files encrypted on another platform using password based encryption (-c) intermittently fail to decrypt on Kleopatra.

You forwarded me an email, which said it went well.

Mar 19 2020, 9:37 AM · gnupg (gpg22), Bug Report
gniibe added a comment to T4864: New scdaemon command to watch device removal.

Created https://dev.gnupg.org/source/gnupg/history/gniibe%252Fscd-watch/

Mar 19 2020, 6:28 AM · Restricted Project, Feature Request, scd, Bug Report
gniibe committed rG6f93050c40b2: watch: show information. (authored by gniibe).
watch: show information.
Mar 19 2020, 6:27 AM
gniibe committed rG431cdb5b0274: watch: Add --scan option. (authored by gniibe).
watch: Add --scan option.
Mar 19 2020, 6:27 AM
gniibe committed rGc62795221c0c: watch: use condition variable. (authored by gniibe).
watch: use condition variable.
Mar 19 2020, 6:27 AM
gniibe committed rG753c1dcecc37: watch: call notification to app_wait from scd_update_reader_status_file. (authored by gniibe).
watch: call notification to app_wait from scd_update_reader_status_file.
Mar 19 2020, 6:27 AM
gniibe committed rG5282538c005c: npth_sigwait is not available. (authored by gniibe).
npth_sigwait is not available.
Mar 19 2020, 6:27 AM
gniibe committed rG9515cac4ae55: rough sketch. (authored by gniibe).
rough sketch.
Mar 19 2020, 6:27 AM
gniibe committed rG052ef907ffb1: Add flags in server_local_s. (authored by gniibe).
Add flags in server_local_s.
Mar 19 2020, 6:27 AM
gniibe added a subtask for T4869: constant-time mpi_invm: T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:22 AM · libgcrypt
gniibe added a parent task for T4294: Release Libgcrypt 1.9.0: T4869: constant-time mpi_invm.
Mar 19 2020, 5:22 AM · Release Info, libgcrypt
gniibe added a parent task for T4294: Release Libgcrypt 1.9.0: T4293: Add dedicated X25519 function to Libcgrypt .
Mar 19 2020, 5:21 AM · Release Info, libgcrypt
gniibe added a subtask for T4293: Add dedicated X25519 function to Libcgrypt : T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:21 AM · Restricted Project, libgcrypt
gniibe removed a subtask for T4294: Release Libgcrypt 1.9.0: T4293: Add dedicated X25519 function to Libcgrypt .
Mar 19 2020, 5:20 AM · Release Info, libgcrypt
gniibe removed a parent task for T4293: Add dedicated X25519 function to Libcgrypt : T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:20 AM · Restricted Project, libgcrypt
gniibe added a subtask for T4288: Add getrandom support for the BSDs: T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:20 AM · libgcrypt
gniibe added a parent task for T4294: Release Libgcrypt 1.9.0: T4288: Add getrandom support for the BSDs.
Mar 19 2020, 5:20 AM · Release Info, libgcrypt
gniibe removed a subtask for T4294: Release Libgcrypt 1.9.0: T4288: Add getrandom support for the BSDs.
Mar 19 2020, 5:20 AM · Release Info, libgcrypt
gniibe removed a parent task for T4288: Add getrandom support for the BSDs: T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:20 AM · libgcrypt
gniibe added a subtask for T4274: Fail selftests when checksum file is missing in FIPS mode only: T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:20 AM · Restricted Project, libgcrypt, Bug Report
gniibe added a parent task for T4294: Release Libgcrypt 1.9.0: T4274: Fail selftests when checksum file is missing in FIPS mode only.
Mar 19 2020, 5:20 AM · Release Info, libgcrypt
gniibe removed a parent task for T4274: Fail selftests when checksum file is missing in FIPS mode only: T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:20 AM · Restricted Project, libgcrypt, Bug Report
gniibe removed a subtask for T4294: Release Libgcrypt 1.9.0: T4274: Fail selftests when checksum file is missing in FIPS mode only.
Mar 19 2020, 5:20 AM · Release Info, libgcrypt
gniibe added a subtask for T1303: Please support GCRYSEXP_FMT_BASE64: T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:19 AM · Feature Request, libgcrypt
gniibe added a parent task for T4294: Release Libgcrypt 1.9.0: T1303: Please support GCRYSEXP_FMT_BASE64.
Mar 19 2020, 5:19 AM · Release Info, libgcrypt
gniibe removed a parent task for T1303: Please support GCRYSEXP_FMT_BASE64: T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:19 AM · Feature Request, libgcrypt
gniibe removed a subtask for T4294: Release Libgcrypt 1.9.0: T1303: Please support GCRYSEXP_FMT_BASE64.
Mar 19 2020, 5:19 AM · Release Info, libgcrypt
gniibe added a subtask for T4243: Test failure in libgcrypt-1.8.4: T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:19 AM · Documentation, Tests, libgcrypt, Bug Report
gniibe added a parent task for T4294: Release Libgcrypt 1.9.0: T4243: Test failure in libgcrypt-1.8.4.
Mar 19 2020, 5:19 AM · Release Info, libgcrypt
gniibe removed a subtask for T4294: Release Libgcrypt 1.9.0: T4243: Test failure in libgcrypt-1.8.4.
Mar 19 2020, 5:19 AM · Release Info, libgcrypt
gniibe removed a parent task for T4243: Test failure in libgcrypt-1.8.4: T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:19 AM · Documentation, Tests, libgcrypt, Bug Report
gniibe added a subtask for T4068: libgcrypt 1.8.3 make check errors: T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:18 AM · Documentation, libgcrypt
gniibe added a parent task for T4294: Release Libgcrypt 1.9.0: T4068: libgcrypt 1.8.3 make check errors.
Mar 19 2020, 5:18 AM · Release Info, libgcrypt
gniibe removed a parent task for T4068: libgcrypt 1.8.3 make check errors: T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:18 AM · Documentation, libgcrypt
gniibe removed a subtask for T4294: Release Libgcrypt 1.9.0: T4068: libgcrypt 1.8.3 make check errors.
Mar 19 2020, 5:18 AM · Release Info, libgcrypt
gniibe added a subtask for T4294: Release Libgcrypt 1.9.0: T4293: Add dedicated X25519 function to Libcgrypt .
Mar 19 2020, 5:14 AM · Release Info, libgcrypt
gniibe added a parent task for T4293: Add dedicated X25519 function to Libcgrypt : T4294: Release Libgcrypt 1.9.0.
Mar 19 2020, 5:14 AM · Restricted Project, libgcrypt
gniibe removed subtasks for T4293: Add dedicated X25519 function to Libcgrypt : T4294: Release Libgcrypt 1.9.0, T4702: Deadline for the GnuPG 2.3.0 release.
Mar 19 2020, 5:13 AM · Restricted Project, libgcrypt
gniibe removed a parent task for T4294: Release Libgcrypt 1.9.0: T4293: Add dedicated X25519 function to Libcgrypt .
Mar 19 2020, 5:13 AM · Release Info, libgcrypt
gniibe removed a parent task for T4702: Deadline for the GnuPG 2.3.0 release: T4293: Add dedicated X25519 function to Libcgrypt .
Mar 19 2020, 5:13 AM · Restricted Project, gpg4win, gnupg
gniibe changed the status of T4869: constant-time mpi_invm from Open to Testing.
Mar 19 2020, 5:10 AM · libgcrypt
dkg created T4883: gpgme X.509 certificates have unknown validity in offline mode unless `disable-crl-checks` is set.
Mar 19 2020, 2:25 AM · Not A Bug, S/MIME, gpgme
dkg created T4882: gpgconf --homedir is ignored when setting options.
Mar 19 2020, 1:35 AM · gnupg (gpg22), Bug Report
gniibe committed rG8aec6d6fd8f6: po: Update Japanese Translation. (authored by gniibe).
po: Update Japanese Translation.
Mar 19 2020, 1:29 AM

Mar 18 2020

dkg added a comment to T4881: "User ID" (Subject, subjectAltName) validity is inaccurate in gpgsm with sample certs..

I thought i'd try with other certificates. I started with the one from this website. It also fails to validate unless i supply --disable-crl-checks, apparently because the immediate issuer (the Let's Encrypt CA) doesn't offer CRLs, only OCSP responders. Perhaps --disable-crl-checks should be the default, or at least if there is no CRL available there shouldn't be a failure by default:

Mar 18 2020, 10:38 PM · Not A Bug, gnupg (gpg22), S/MIME
dkg added a comment to T4881: "User ID" (Subject, subjectAltName) validity is inaccurate in gpgsm with sample certs..

Aha, i can get it to say f if i use --disable-crl-checks:

Mar 18 2020, 10:30 PM · Not A Bug, gnupg (gpg22), S/MIME
dkg added a comment to T4881: "User ID" (Subject, subjectAltName) validity is inaccurate in gpgsm with sample certs..

i didn't know that, thanks. i'm now seeing i (which i think means "invalid") in the same configuration:

Mar 18 2020, 9:36 PM · Not A Bug, gnupg (gpg22), S/MIME
werner added a comment to T4881: "User ID" (Subject, subjectAltName) validity is inaccurate in gpgsm with sample certs..

Add --with-validation to check the validity of a certificate in a listing.

Mar 18 2020, 9:07 PM · Not A Bug, gnupg (gpg22), S/MIME
dkg created T4881: "User ID" (Subject, subjectAltName) validity is inaccurate in gpgsm with sample certs..
Mar 18 2020, 8:55 PM · Not A Bug, gnupg (gpg22), S/MIME
werner moved T4810: A key with only "C" capability cannot be selected as default key. from Backlog to For next release on the gnupg (gpg22) board.
Mar 18 2020, 4:08 PM · Restricted Project, gnupg (gpg22)
werner moved T4832: card: when KDF is enabled, use of pinpad input should be disabled from Backlog to For next release on the gnupg (gpg22) board.
Mar 18 2020, 4:06 PM · Restricted Project, gnupg (gpg22), scd, Bug Report
werner committed rG133248b297a1: scd: Fix pinpad handling when KDF enabled. (authored by gniibe).
scd: Fix pinpad handling when KDF enabled.
Mar 18 2020, 4:06 PM
werner committed rGb27e20a95cb7: scd: Disable pinpad if it's impossible by KDF DO. (authored by gniibe).
scd: Disable pinpad if it's impossible by KDF DO.
Mar 18 2020, 4:06 PM
werner added a comment to T4832: card: when KDF is enabled, use of pinpad input should be disabled.

Backported to 2.2

Mar 18 2020, 4:06 PM · Restricted Project, gnupg (gpg22), scd, Bug Report
werner moved T4847: "gpgsm: invalid radix64 character 2d skipped" when trying to import a PEM file with DOS line endings (CR+LF) from Backlog to For next release on the gnupg (gpg22) board.
Mar 18 2020, 3:50 PM · gnupg (gpg22), S/MIME, Bug Report
werner moved T4850: GnuPG fails to find default key to sign when using a smart card, but recovers once card is removed from Backlog to For next release on the gnupg (gpg22) board.
Mar 18 2020, 3:50 PM · Restricted Project, gnupg (gpg22)
werner moved T4536: dirmngr fails to find OCSP signer certificate when responder is identified with key ID from Backlog to For next release on the gnupg (gpg22) board.
Mar 18 2020, 3:49 PM · S/MIME, gnupg (gpg22), Bug Report
werner moved T4831: gnupg-2.2.19 fails to build on latest Fedora Rawhide from Backlog to For next release on the gnupg (gpg22) board.
Mar 18 2020, 3:49 PM · gnupg (gpg22), toolchain, Bug Report
werner moved T4860: Release GnuPG 2.2.20 from Backlog to For next release on the gnupg (gpg22) board.
Mar 18 2020, 3:48 PM · gnupg (gpg22), Release Info
werner edited projects for T4667: "gpg: deleting secret key failed: No pinentry" when in --batch mode with --pinentry=loopback, added: gnupg (gpg23); removed gnupg (gpg22).

Okay, in 2.2 the output now looks like this:

Mar 18 2020, 3:32 PM · gnupg24, gnupg (gpg23), Bug Report
werner committed rGfbe318475236: gpg: Print a hint for --batch mode and --delete-secret-key. (authored by werner).
gpg: Print a hint for --batch mode and --delete-secret-key.
Mar 18 2020, 3:27 PM
werner claimed T4667: "gpg: deleting secret key failed: No pinentry" when in --batch mode with --pinentry=loopback.
Mar 18 2020, 3:02 PM · gnupg24, gnupg (gpg23), Bug Report
werner added a comment to T4667: "gpg: deleting secret key failed: No pinentry" when in --batch mode with --pinentry=loopback.

This is closely related to T3465 which was fixed in master. Running a gpg-agent 2.3 agent and using gpg 2.2 it works; however, using a gpg 2.3 bails out with an error message that we are in batch mode. I will look at this.

Mar 18 2020, 3:02 PM · gnupg24, gnupg (gpg23), Bug Report
werner edited projects for T4612: Add spare space to the keybox to always allow the import of revocations., added: gnupg (gpg23); removed gnupg (gpg22).

Won't happen for 2.2

Mar 18 2020, 2:23 PM · gnupg24, gnupg (gpg23), Bug Report
werner edited projects for T4605: automatically upgrade from `pubring.gpg` to `pubring.kbx`, added: gnupg (gpg23); removed gnupg (gpg22).

Given that we may move to yet another format in 2.3 I now doubt that we should add such a feature to 2.2.

Mar 18 2020, 2:22 PM · gnupg24, gnupg (gpg23), Feature Request
werner added a comment to T4573: Files encrypted on another platform using password based encryption (-c) intermittently fail to decrypt on Kleopatra.

@gniibe: I am not sure we really continued by mail - do you have any updates on the status?

Mar 18 2020, 2:19 PM · gnupg (gpg22), Bug Report
werner changed the status of T4536: dirmngr fails to find OCSP signer certificate when responder is identified with key ID from Open to Testing.

Sorry, I have not yet followed you test plan but given that we have the patch in master for a long time now I think it is okay to port it to 2.2.

Mar 18 2020, 2:15 PM · S/MIME, gnupg (gpg22), Bug Report
werner committed rG25dc0e5b1eb0: dirmngr: Improve finding OCSP cert. (authored by werner).
dirmngr: Improve finding OCSP cert.
Mar 18 2020, 2:14 PM
werner closed T4855: The trusted-key option requires a long key ID and won't take a fingerprint as Resolved.

Thanks. I applied your patch to 2.2 and master. I had to do a minor fix because the function does not return anything. Also extended on master with another patch for v5 keys.

Mar 18 2020, 2:04 PM · gnupg (gpg22), Feature Request
werner committed rGb6d89d1944c5: gpg: Update --trusted-key to accept fingerprint as well as long key id. (authored by dkg).
gpg: Update --trusted-key to accept fingerprint as well as long key id.
Mar 18 2020, 2:02 PM
werner committed rG4287f89557b3: gpg: Also allow a v5 fingerprint for --trusted-key. (authored by werner).
gpg: Also allow a v5 fingerprint for --trusted-key.
Mar 18 2020, 1:58 PM
werner committed rG810ea2cc6844: gpg: Update --trusted-key to accept fingerprint as well as long key id. (authored by dkg).
gpg: Update --trusted-key to accept fingerprint as well as long key id.
Mar 18 2020, 1:58 PM
werner added a comment to T4867: with non-existent homedir, `gpgconf --check-programs` produces surprising output..

The newlines are not percent escaped because that could lead to very long lines and thus break parsers. Another reason is that the error messages are easier to read this way. An empty first field is anyway not valid and parsers should skip that.

Mar 18 2020, 1:42 PM · gnupg (gpg22), Bug Report