Page MenuHome GnuPG
Feed All Stories

May 6 2022

ikloecker added inline comments to rG91acbdc93c8a: scd:p15: Improve the displayed S/N for Technology Nexus cards..
May 6 2022, 3:18 PM
oddlama added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

With the patch and after starting a new gpg-agent, gpg --card-status now works immediately.
But when I re-plug the yubikey, gpg reports gpg: OpenPGP card not available: Card error until either gpg-agent is restarted, or pcscd is restarted.
pcsc-lite in debug mode reports no errors, but one log is obviously much shorter as gpg fails early (I've attached both, same pcscd and gpg-agent instance).

May 6 2022, 1:42 PM · backport, yubikey, scd, segv, Bug Report
werner committed rG3d7d7e8bfd12: scd:p15: Improve the displayed S/N for Technology Nexus cards. (authored by werner).
scd:p15: Improve the displayed S/N for Technology Nexus cards.
May 6 2022, 11:46 AM
werner committed rG6f612fd5f6d8: scd:p15: Fix the the sanity check of the displayed S/N. (authored by werner).
scd:p15: Fix the the sanity check of the displayed S/N.
May 6 2022, 11:46 AM
werner committed rG91acbdc93c8a: scd:p15: Improve the displayed S/N for Technology Nexus cards. (authored by werner).
scd:p15: Improve the displayed S/N for Technology Nexus cards.
May 6 2022, 11:38 AM
werner committed rG8efe738c4a09: scd:p15: Fix the the sanity check of the displayed S/N. (authored by werner).
scd:p15: Fix the the sanity check of the displayed S/N.
May 6 2022, 11:38 AM
gniibe committed rG054d14887ef8: scd: Add workaround for ECC attribute on Yubikey. (authored by gniibe).
scd: Add workaround for ECC attribute on Yubikey.
May 6 2022, 11:30 AM
gniibe added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

I pushed a workaround.

May 6 2022, 11:28 AM · backport, yubikey, scd, segv, Bug Report
gniibe renamed T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys from scdaemon causes libc segfault and clashes with pcsc-lite despite using disable-ccid to Yubikey: scdaemon causes libc segfault and clashes with ECC keys.
May 6 2022, 11:26 AM · backport, yubikey, scd, segv, Bug Report
ikloecker added a comment to T5959: Kleopatra: Show key source in details widget if it is not unkown.

Source (or origin as it's called in the API) exists as per-key and as per-user-ID property. For the user IDs it should probably be shown in the user ID table.

May 6 2022, 11:12 AM · Restricted Project, kleopatra
ikloecker changed the status of T5958: Kleopatra: Change passphrase is enabled even when it is impossible from Open to Testing.
May 6 2022, 10:46 AM · Restricted Project, kleopatra
ikloecker added a comment to T5958: Kleopatra: Change passphrase is enabled even when it is impossible.

In fact, the ChangePassphraseCommand uses gpgme_op_passwd which "changes the passphrase of the private key". It doesn't know anything about smart cards.

May 6 2022, 10:46 AM · Restricted Project, kleopatra
ikloecker committed rKLEOPATRA5a84623b8d73: Enable "Change Passphrase" action only for secret keys in local keyring (authored by ikloecker).
Enable "Change Passphrase" action only for secret keys in local keyring
May 6 2022, 10:45 AM
ikloecker moved T5958: Kleopatra: Change passphrase is enabled even when it is impossible from Restricted Project Column to Restricted Project Column on the Restricted Project board.
May 6 2022, 10:27 AM · Restricted Project, kleopatra
ikloecker claimed T5958: Kleopatra: Change passphrase is enabled even when it is impossible.

I think we should simply disable this command for card keys. Card key operations like "Change PIN/passphrase" should be performed via the card key view.

May 6 2022, 10:27 AM · Restricted Project, kleopatra
ikloecker added a comment to T5961: Kleopatra: S/MIME Details cannot be copied multiline on Windows.

Can you make a short video of this? On Linux/KDE Plasma, I'm not even able to select multiple lines in the certificate details window (or I'm trying the wrong thing).

May 6 2022, 10:23 AM · kleopatra, Restricted Project
ikloecker added a comment to T5957: Kleopatra: Show recipient information in the Notepad next to the input field .

I fully agree. I also think that the separate recipient tab are rather annoying, in particular, because I usually want to select the recipients before I write the text. Accessibility will also benefit if all inputs can be reached easily with the Tab key without the need to switch between different tabs.

May 6 2022, 10:19 AM · gpd5x, kleopatra
ikloecker changed the status of T5864: Kleopatra: Configure min and max values for validity in Newcertificatewizard from Open to Testing.

Proper accessible error reporting will be done with the accessibility related tasks.

May 6 2022, 10:13 AM · kleopatra, Restricted Project
ikloecker moved T5965: gpgme: Inconsistent secret subkey flag when listing keys with different modes from Restricted Project Column to Restricted Project Column on the Restricted Project board.
May 6 2022, 10:11 AM · gpgme, Restricted Project
ikloecker closed T5965: gpgme: Inconsistent secret subkey flag when listing keys with different modes as Resolved.
May 6 2022, 10:10 AM · gpgme, Restricted Project
ikloecker committed rKLEOPATRAbd71828fb9c2: Fix evaluation of NeedSecretKey flag (authored by ikloecker).
Fix evaluation of NeedSecretKey flag
May 6 2022, 10:10 AM
ikloecker committed rKLEOPATRAf5e94b6eb68d: Remove unused MustNotBeSecretKey flag (authored by ikloecker).
Remove unused MustNotBeSecretKey flag
May 6 2022, 10:10 AM
ikloecker changed the status of T5956: Kleopatra: Disable backup secret key for smartcards from Open to Testing.

For the same reasons "Print Secret Keys..." is now also disabled for keys stored on smart cards. No other command seems to require access to the secret key data.

May 6 2022, 10:10 AM · kleopatra, Restricted Project
gniibe added a project to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys: yubikey.
May 6 2022, 10:07 AM · backport, yubikey, scd, segv, Bug Report
ikloecker committed rMf72cf726ca74: core: Set SECRET flag of subkeys stored on smart cards (authored by ikloecker).
core: Set SECRET flag of subkeys stored on smart cards
May 6 2022, 9:34 AM
gniibe claimed T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.
May 6 2022, 8:56 AM · backport, yubikey, scd, segv, Bug Report
gniibe added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

For my environment, it is not PC/SC-specific. It also occurs when CCID driver is used.

May 6 2022, 8:42 AM · backport, yubikey, scd, segv, Bug Report
werner added a comment to T5965: gpgme: Inconsistent secret subkey flag when listing keys with different modes.

No sure, you could also consider the is_cardkey flag to mean that a secret key might be available. FWIW, GPA sets it internal secret key flag based on the type of listing done; thus I see no problem if you want to change the behaviour.

May 6 2022, 8:33 AM · gpgme, Restricted Project
gniibe added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

For bcdDevice 5.24, I can replicate the symptom, but only once. After second invocation of gpg --card-status, it works well.

May 6 2022, 8:26 AM · backport, yubikey, scd, segv, Bug Report
gniibe moved T5933: libgcrypt: Simply use BSS (not secure heap) for DRBG instance from Next to Ready for release on the FIPS board.
May 6 2022, 2:31 AM · backport, FIPS, libgcrypt
gniibe moved T5919: libgcrypt tests/basic.c and tests/keygen.c occasionally fail with "error generating RSA key: Number is not prime" from Next to Ready for release on the FIPS board.
May 6 2022, 2:31 AM · backport, FIPS, libgcrypt, Bug Report
gniibe moved T5918: Disable RSA PKCS #1.5 encryption in FIPS mode from Next to Ready for release on the FIPS board.
May 6 2022, 2:31 AM · backport, libgcrypt, FIPS, Bug Report
gniibe closed T5929: gnupg fails to add ssh key to control entry in FIPS mode with libgcrypt 1.10.1 as Resolved.
May 6 2022, 2:16 AM · FIPS, gnupg (gpg23), Bug Report

May 5 2022

ikloecker added projects to T5965: gpgme: Inconsistent secret subkey flag when listing keys with different modes: Restricted Project, gpgme.
May 5 2022, 5:27 PM · gpgme, Restricted Project
ikloecker committed rM306fd9c915cb: cpp: Output more properties of a subkey (authored by ikloecker).
cpp: Output more properties of a subkey
May 5 2022, 5:26 PM
ikloecker committed rMe029fd27350f: cpp,tests: Actually parse the --with-secret option (authored by ikloecker).
cpp,tests: Actually parse the --with-secret option
May 5 2022, 5:26 PM
ikloecker committed rKLEOPATRA2914efb4769e: Fix enable state of commands that need access to the secret key data (authored by ikloecker).
Fix enable state of commands that need access to the secret key data
May 5 2022, 5:15 PM
ikloecker committed rKLEOPATRA396629a207e3: Convert values of Restriction enum to hex literals (authored by ikloecker).
Convert values of Restriction enum to hex literals
May 5 2022, 5:15 PM
ikloecker created T5965: gpgme: Inconsistent secret subkey flag when listing keys with different modes.
May 5 2022, 4:58 PM · gpgme, Restricted Project
ikloecker closed T5951: gpgme: Add support for refreshing OpenPGP keys as Resolved.
May 5 2022, 3:23 PM · gpgme, Restricted Project
ikloecker closed T5951: gpgme: Add support for refreshing OpenPGP keys, a subtask of T5903: Kleopatra: Add refresh button in certificatedetails , as Resolved.
May 5 2022, 3:23 PM · backport, kleopatra, Restricted Project
ikloecker changed the status of T5903: Kleopatra: Add refresh button in certificatedetails from Open to Testing.

The Certificate Details window now has an Update button.

May 5 2022, 3:22 PM · backport, kleopatra, Restricted Project
werner committed rG36a5509e11c8: gpg: Minor robustness fix. (authored by werner).
gpg: Minor robustness fix.
May 5 2022, 2:13 PM
werner committed rGd60f930d9b00: scd: New debug flags "card". (authored by werner).
scd: New debug flags "card".
May 5 2022, 2:13 PM
werner committed rG7f029eef6ce1: scd:p15: Fix reading certificates without length info. (authored by werner).
scd:p15: Fix reading certificates without length info.
May 5 2022, 2:13 PM
werner committed rGbbcca7357b01: scd:p15: Fix reading certificates without length info. (authored by werner).
scd:p15: Fix reading certificates without length info.
May 5 2022, 1:46 PM
werner committed rG7dc569392622: scd: New debug flags "card". (authored by werner).
scd: New debug flags "card".
May 5 2022, 1:46 PM
oddlama added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

I've applied the patch and can confirm that the segfault is fixed, but gpg still has severe problems communicating with the Yubikey over pcsc-lite.

May 5 2022, 12:10 PM · backport, yubikey, scd, segv, Bug Report
ikloecker committed rKLEOPATRA9bc72ccb2290: Force the entered expiration date into the allowed range (authored by ikloecker).
Force the entered expiration date into the allowed range
May 5 2022, 11:24 AM
ikloecker committed rKLEOPATRA876a5306b822: Reword UI texts for refresh command (authored by ikloecker).
Reword UI texts for refresh command
May 5 2022, 11:24 AM
ikloecker committed rKLEOPATRAdf53ad6c7847: Use RefreshOpenPGPKeysJob for OpenPGP and show detailed result (authored by ikloecker).
Use RefreshOpenPGPKeysJob for OpenPGP and show detailed result
May 5 2022, 11:24 AM
ikloecker committed rM9e8c8e448ec8: qt: Revert change of result signal of RefreshKeysJob (authored by ikloecker).
qt: Revert change of result signal of RefreshKeysJob
May 5 2022, 10:53 AM
ikloecker added a reverting change for rMf4c356092571: qt: Make RefreshKeysJob result compatible with standard job result: rM9e8c8e448ec8: qt: Revert change of result signal of RefreshKeysJob.
May 5 2022, 10:53 AM
ikloecker committed rM15a4940aa730: qt: Use lambda instead of std::bind (authored by ikloecker).
qt: Use lambda instead of std::bind
May 5 2022, 10:53 AM
ikloecker committed rM3519d6117332: cpp: Allow retrieving import result of key listing with locate mode (authored by ikloecker).
cpp: Allow retrieving import result of key listing with locate mode
May 5 2022, 10:53 AM
ikloecker committed rMc64a8daf507a: qt: Emit import result when refreshing OpenPGP keys (authored by ikloecker).
qt: Emit import result when refreshing OpenPGP keys
May 5 2022, 10:53 AM
ikloecker committed rMd911a1536488: cpp: Allow merging the results of two imports (authored by ikloecker).
cpp: Allow merging the results of two imports
May 5 2022, 10:53 AM
ikloecker committed rMf3ca57dfd7af: core: Handle import status lines during keylist operation (authored by ikloecker).
core: Handle import status lines during keylist operation
May 5 2022, 10:53 AM
werner added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

Ours are even newer (5.4.3). Did you the Yubico tools to switch to curve443?
In any case, is it possible that you apply my fix and test again?

May 5 2022, 10:06 AM · backport, yubikey, scd, segv, Bug Report
werner committed rG385f4841330e: scd:openpgp: Fix a segv for cards supporting unknown curves. (authored by werner).
scd:openpgp: Fix a segv for cards supporting unknown curves.
May 5 2022, 9:55 AM
werner added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

Your Yubikey's firmware version is 5.2.7 - let me see what versions we have in stock to test my fix.

May 5 2022, 9:51 AM · backport, yubikey, scd, segv, Bug Report
aheinecke removed a project from T5864: Kleopatra: Configure min and max values for validity in Newcertificatewizard: Restricted Project.
May 5 2022, 8:54 AM · kleopatra, Restricted Project
aheinecke changed the status of T5864: Kleopatra: Configure min and max values for validity in Newcertificatewizard from Testing to Open.

This can be bypassed by entering the date manually, was reported by a customer and I have just confirmed this.

May 5 2022, 8:54 AM · kleopatra, Restricted Project
werner triaged T5952: Can't uninstall gpg4win with Ansible as Normal priority.
May 5 2022, 8:41 AM · Support, gpg4win
werner triaged T5964: gnupg should use the KDFs implemented in libgcrypt as Normal priority.

When we implemented this first, Libgcrypt had no appropriate KDF support. I recall that I considered to change this but it turned out the for 2.2 the changes are too large. For 2.3 we will consider such a change.

May 5 2022, 8:40 AM · gnupg26, FIPS, Feature Request

May 4 2022

Laurent Montel <montel@kde.org> committed rKLEOPATRA6674f3752bec: Remove duplicate header between header cpp file (authored by Laurent Montel <montel@kde.org>).
Remove duplicate header between header cpp file
May 4 2022, 6:59 PM
oddlama added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

I've taken the liberty to regenerate the valgrind report including libc and gnupg debugsyms. Maybe it'll help.

May 4 2022, 4:47 PM · backport, yubikey, scd, segv, Bug Report
Jakuje created T5964: gnupg should use the KDFs implemented in libgcrypt.
May 4 2022, 3:16 PM · gnupg26, FIPS, Feature Request
werner updated subscribers of T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

I am not sure about the crash but the unknown curve is
1.3.6.1.4.1.11591.15.1.2 which seems to be a GNU OID for curve448

May 4 2022, 2:38 PM · backport, yubikey, scd, segv, Bug Report
oddlama added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

It segfaults on SERIALNO. Here's what valgrind outputs:

May 4 2022, 12:48 PM · backport, yubikey, scd, segv, Bug Report
werner added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

What I would do in this case is to stop the gnupg daemon amd anything whiuch might start them and run scdaemon under valgrind.

May 4 2022, 10:13 AM · backport, yubikey, scd, segv, Bug Report

May 3 2022

werner committed rW8d5439e75dca: Update binary version of GnuPG with Authenticode signed builds. (authored by werner).
Update binary version of GnuPG with Authenticode signed builds.
May 3 2022, 12:18 PM
werner committed rWa7e52329f0e5: Fix quoting in AUTHENTICODE_sign make template (authored by werner).
Fix quoting in AUTHENTICODE_sign make template
May 3 2022, 12:18 PM
werner committed rW032b1776dc8a: Fix use of osslsigncode along with stow (authored by werner).
Fix use of osslsigncode along with stow
May 3 2022, 12:18 PM
werner committed rW356765895426: appimage: Micro fix (authored by werner).
appimage: Micro fix
May 3 2022, 12:18 PM
gniibe added a project to T5933: libgcrypt: Simply use BSS (not secure heap) for DRBG instance: backport.
May 3 2022, 11:22 AM · backport, FIPS, libgcrypt
werner added a project to T5919: libgcrypt tests/basic.c and tests/keygen.c occasionally fail with "error generating RSA key: Number is not prime": backport.
May 3 2022, 11:21 AM · backport, FIPS, libgcrypt, Bug Report
werner added a project to T5918: Disable RSA PKCS #1.5 encryption in FIPS mode: backport.
May 3 2022, 11:17 AM · backport, libgcrypt, FIPS, Bug Report
gniibe moved T5933: libgcrypt: Simply use BSS (not secure heap) for DRBG instance from Backlog to Next on the FIPS board.
May 3 2022, 10:58 AM · backport, FIPS, libgcrypt
gniibe moved T5929: gnupg fails to add ssh key to control entry in FIPS mode with libgcrypt 1.10.1 from Next to Ready for release on the FIPS board.
May 3 2022, 10:58 AM · FIPS, gnupg (gpg23), Bug Report
gniibe removed a project from T5929: gnupg fails to add ssh key to control entry in FIPS mode with libgcrypt 1.10.1: Restricted Project.
May 3 2022, 10:57 AM · FIPS, gnupg (gpg23), Bug Report
gniibe added a comment to T5929: gnupg fails to add ssh key to control entry in FIPS mode with libgcrypt 1.10.1.

Fixed in GnuPG 2.3.5.

May 3 2022, 10:57 AM · FIPS, gnupg (gpg23), Bug Report
gniibe added a project to T5918: Disable RSA PKCS #1.5 encryption in FIPS mode: Restricted Project.
May 3 2022, 10:49 AM · backport, libgcrypt, FIPS, Bug Report
gniibe added a project to T5929: gnupg fails to add ssh key to control entry in FIPS mode with libgcrypt 1.10.1: Restricted Project.
May 3 2022, 10:48 AM · FIPS, gnupg (gpg23), Bug Report
gniibe added a project to T5919: libgcrypt tests/basic.c and tests/keygen.c occasionally fail with "error generating RSA key: Number is not prime": Restricted Project.
May 3 2022, 10:48 AM · backport, FIPS, libgcrypt, Bug Report
gniibe added a project to T5933: libgcrypt: Simply use BSS (not secure heap) for DRBG instance: Restricted Project.
May 3 2022, 10:46 AM · backport, FIPS, libgcrypt
gniibe added a comment to T5931: OpenSSH 8.9, 9.0, and 9.1 can't authenticate with gpg-agent and usb token (Gnuk >= 1.2.16 is required).

Nitrokey Start uses Gnuk as its firmware. You need to upgrade its firmware to version 1.2.16 or newer.
Please note that when upgrading the firmware, your keys will be removed.

May 3 2022, 10:43 AM · gnupg24, workaround, Documentation, gnupg (gpg23), ssh, gpgagent
ikloecker committed rLIBKLEO343b5bb4046a: GIT_SILENT Clear list of words to ignore by codespell (again) (authored by ikloecker).
GIT_SILENT Clear list of words to ignore by codespell (again)
May 3 2022, 10:05 AM
ikloecker committed rKLEOPATRAe94a4f7e1876: GIT_SILENT Clear list of words to ignore by codespell (again) (authored by ikloecker).
GIT_SILENT Clear list of words to ignore by codespell (again)
May 3 2022, 10:05 AM
Laurent Montel <montel@kde.org> committed rLIBKLEO5b8c1d5bfec8: GIT_SILENT: exclude .xml file (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: exclude .xml file
May 3 2022, 9:14 AM
Laurent Montel <montel@kde.org> committed rLIBKLEO744dcc2eb7eb: GIT_SILENT: compile fine without deprecated kf5.94 method (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: compile fine without deprecated kf5.94 method
May 3 2022, 9:14 AM
Laurent Montel <montel@kde.org> committed rKLEOPATRA5d7ef9b1dbd4: GIT_SILENT: compile fine without deprecated kf5.94 method (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: compile fine without deprecated kf5.94 method
May 3 2022, 9:11 AM
Laurent Montel <montel@kde.org> committed rKLEOPATRA86eb466e36f2: GIT_SILENT: exclude .xml file (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: exclude .xml file
May 3 2022, 9:11 AM

May 2 2022

oddlama created T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.
May 2 2022, 11:21 PM · backport, yubikey, scd, segv, Bug Report
amalon added a comment to T5931: OpenSSH 8.9, 9.0, and 9.1 can't authenticate with gpg-agent and usb token (Gnuk >= 1.2.16 is required).

Its a nitrokey start. I gave it another spin just to make sure, and again when updating to openssh 9.0 and "gpg (GnuPG) 2.3.6-unknown", it fails (again with careful gpgconf --kill gpg-agent etc. Double checked the downloaded source code by arch's makepkg, appears to have that patch applied. Also tried adding -o KexAlgorithms=-sntrup761x25519-sha512@openssh.com to the ssh command, which didn't help.

May 2 2022, 10:36 PM · gnupg24, workaround, Documentation, gnupg (gpg23), ssh, gpgagent
ikloecker added a comment to T5962: Kleopatra: Crash when quitting Application on Windows.

Looks like somebody is writing to the shared config after it has been destroyed already. Probably some global object that is destroyed by the runtime on shutdown.

May 2 2022, 6:06 PM · Restricted Project, kleopatra
dkg added a comment to T5954: Building for windows requires gpgrt (libgpg-error) 1.45, but configure.ac claims 1.27.

Debian requires all builds to use software that we have local copies of in the archive, which appears to rule out the use of speedo (it fetches source over the internet during build). So i've modified debian packaging to annotate that the Windows builds need a different version of libgpg-error than that defined in configure.ac.

May 2 2022, 6:03 PM · gnupg (gpg22), Bug Report
ikloecker committed rLIBKLEOa732f7990ad6: Return null subkey if there are no subkeys with the given key grip (authored by ikloecker).
Return null subkey if there are no subkeys with the given key grip
May 2 2022, 5:58 PM
ikloecker committed rKLEOPATRA9e2dc6246e20: Add possibility to refresh an individual certificate (authored by ikloecker).
Add possibility to refresh an individual certificate
May 2 2022, 5:45 PM
ikloecker committed rM540e7bf3d457: qt: Use GpgME::Locate alias (authored by ikloecker).
qt: Use GpgME::Locate alias
May 2 2022, 4:05 PM