Page MenuHome GnuPG
Feed All Stories

Sep 15 2020

werner triaged T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2) as High priority.

Okay, I have the same problem at my office and thus I should be able to figure out the reason. I have ignored the problem until now because the wokraround is easy enough and in most cases I authenticate with my token anyway. But yes, this needs to be fixed.

Sep 15 2020, 9:35 PM · Restricted Project, gnupg (gpg22), scd, Bug Report
werner triaged T5069: Concurrent auto-start of gpg-agent by multiple gpg instances. as Normal priority.

I assume this is the Windows version. gpg uses a locking mechanism to avoid creating several gpg-agent processes. In the worst case this may take quite some time until one of the processes can get the lock. There is an exponential backoff scheme in use and I have not yet found a way to replicate the full deadlock you describe. It would be helpful if you could describe in more detail how you run into this case.

Sep 15 2020, 9:35 PM · Not A Bug, No Response, Info Needed, gnupg (gpg22), Windows, Bug Report
werner triaged T5070: Retain the exact name of the archive when extracting/decrypting via gpgtar as Normal priority.

Using a not yet existing directory is a security feature. The directory is created at a time the signature has not yet been verified and thus it would be too easy to trick a user into overwriting important data.

Sep 15 2020, 9:26 PM · gnupg24, gnupg (gpg23), gpgtar, Feature Request
Romans10910 created T5070: Retain the exact name of the archive when extracting/decrypting via gpgtar.
Sep 15 2020, 8:56 PM · gnupg24, gnupg (gpg23), gpgtar, Feature Request
ikloecker committed rKLEOPATRA39d57bddac29: Support transferring X.509 encryption certificates to PIV cards (authored by ikloecker).
Support transferring X.509 encryption certificates to PIV cards
Sep 15 2020, 6:35 PM
ikloecker committed rKLEOPATRA01b419c53544: Extract certificate to PIV card functionality from KeyToCardCommand (authored by ikloecker).
Extract certificate to PIV card functionality from KeyToCardCommand
Sep 15 2020, 6:35 PM
ikloecker committed rKLEOPATRA6ab94469cd19: Revert: Add "Transfer to Card" action to key list (authored by ikloecker).
Revert: Add "Transfer to Card" action to key list
Sep 15 2020, 6:35 PM
CaveTheCave created T5069: Concurrent auto-start of gpg-agent by multiple gpg instances..
Sep 15 2020, 3:17 PM · Not A Bug, No Response, Info Needed, gnupg (gpg22), Windows, Bug Report
werner created T5068: LDAP keyserver does not support lookup by fingerprint.
Sep 15 2020, 2:24 PM · LDAP, dirmngr, gnupg (gpg22)
glr created T5067: Documentation: adopt RFC 2119 terminology. in the S1 Public space.
Sep 15 2020, 12:03 PM · Documentation
aheinecke created T5066: Multiple smartcard (reader) / app support in Kleopatra.
Sep 15 2020, 11:48 AM · kleopatra
gniibe committed rG6e51f2044aeb: scd: Fix the use case of verify_chv2 by CHECKPIN. (authored by gniibe).
scd: Fix the use case of verify_chv2 by CHECKPIN.
Sep 15 2020, 8:46 AM

Sep 14 2020

slandden added a comment to T5040: Improve PPC code using code from CRYPTOGRAMs.

I think the code is using https://en.wikipedia.org/wiki/Estrin%27s_scheme but I have no scholarship applying this to AES-GCM. I will have to look closer.

Sep 14 2020, 9:12 PM · legal, libgcrypt
ikloecker committed rKLEOPATRAa1b782a571d1: Allow writing signing certificate to PIV card from card widget (authored by ikloecker).
Allow writing signing certificate to PIV card from card widget
Sep 14 2020, 5:10 PM
ikloecker committed rLIBKLEO47ad8871160a: Add the possibility to get a subkey by its key grip from the key cache (authored by ikloecker).
Add the possibility to get a subkey by its key grip from the key cache
Sep 14 2020, 4:49 PM
ikloecker committed rLIBKLEOd2ddf441bb07: Increase the capacity of the correct vector (authored by ikloecker).
Increase the capacity of the correct vector
Sep 14 2020, 4:49 PM
ikloecker committed rLIBKLEO62ef6f945df0: Fix removal of subkeys belonging to a key from the key cache (authored by ikloecker).
Fix removal of subkeys belonging to a key from the key cache
Sep 14 2020, 4:49 PM
turkja added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

Thanks for prompt answer!

Sep 14 2020, 9:45 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
werner added projects to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2): scd, gnupg (gpg22).

Thanks for the detailed report. Does the green LED blink fast when it does not work?

Sep 14 2020, 7:59 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
turkja created T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).
Sep 14 2020, 3:37 AM · Restricted Project, gnupg (gpg22), scd, Bug Report

Sep 13 2020

werner closed T5061: writecert fails for ECC keys on PIV cards as Resolved.
Sep 13 2020, 4:32 PM
Laurent Montel <montel@kde.org> committed rLIBKLEOadb270cd706e: Time to increase version (authored by Laurent Montel <montel@kde.org>).
Time to increase version
Sep 13 2020, 12:41 PM
Laurent Montel <montel@kde.org> committed rKLEOPATRAdd9137ad1c34: Time to increase version (authored by Laurent Montel <montel@kde.org>).
Time to increase version
Sep 13 2020, 12:37 PM

Sep 11 2020

werner committed rGfbc1b199fdc8: scd:piv: Avoid conflict when writing a cert. (authored by werner).
scd:piv: Avoid conflict when writing a cert.
Sep 11 2020, 3:52 PM
werner committed rGb6ba6a79ce93: common: New function cmp_canon_sexp. (authored by werner).
common: New function cmp_canon_sexp.
Sep 11 2020, 3:52 PM
werner committed rG9a94db1f662a: keyboxd: Implement lookup by short and long keyid. (authored by werner).
keyboxd: Implement lookup by short and long keyid.
Sep 11 2020, 12:10 PM
werner committed rG616c60d93dfa: keyboxd: Add ephemeral and revoked flag to the sqlite backend. (authored by werner).
keyboxd: Add ephemeral and revoked flag to the sqlite backend.
Sep 11 2020, 12:10 PM
ikloecker added a comment to T5061: writecert fails for ECC keys on PIV cards.

Still reproducible with current master of everything.

Sep 11 2020, 11:36 AM
ikloecker added a comment to T5061: writecert fails for ECC keys on PIV cards.

I had a quite old master of libgcrypt (probably from August 2). I'll update everything to master an retest.

Sep 11 2020, 10:34 AM
l10n daemon script <scripty@kde.org> committed rKLEOPATRAe1859ba6fa9d: SVN_SILENT made messages (.desktop file) - always resolve ours (authored by l10n daemon script <scripty@kde.org>).
SVN_SILENT made messages (.desktop file) - always resolve ours
Sep 11 2020, 10:03 AM
avemilia added a comment to T5062: gpg: error getting version from 'scdaemon': Forbidden.

Additionally, does your answer imply that when I ssh into remote, no gpg logs on remote should be produced if everything is executed correctly?

Sep 11 2020, 9:52 AM · Bug Report
avemilia added a comment to T5062: gpg: error getting version from 'scdaemon': Forbidden.

I see. How should I prepare environment instead? With local it is clear, but with remote it isn't. I also use remote as a normal machine with yubikey plugged directly into it most of the time, as it is a desktop at home. Local is a laptop that I use when I'm not at home. So, let's say I have a fresh reboot of remote and use it a bit with yubikey. So, it has gpg-agent started with its own socket there. Now I want to ssh into remote. If I understand correctly, for correct functionality I need to kill gpg-agent on remote first, otherwise agent forwarding will misbehave? Then, after I'm done with ssh and get back to remote (physically), how do I "recover" from ssh and re-launch gpg agent normally again? Since you say that killing it will send instruction to kill it on local machine, what should be done instead?

Sep 11 2020, 9:49 AM · Bug Report
gniibe added a comment to T5062: gpg: error getting version from 'scdaemon': Forbidden.

You should not do gpgconf --kill all on your remote machine; It kills gpg-agent on your local machine, through forwarded socket. And next invocation of gpg will invoke gpg-agent on your remote machine, which makes things confusing.

Sep 11 2020, 9:36 AM · Bug Report
avemilia added a comment to T5062: gpg: error getting version from 'scdaemon': Forbidden.

I didn't run gpg-agent or scdaemon on remote manually. If that happened -- it probably happened as a result of ssh'ing into it and spawning a zsh shell, which executed the section that I mark as "Environment (per shell)" above. I do this kind of "preparation" (stop gpg, clean up logs to collect only relevant logs on problem demonstration) to make the problem description as minimal as possible. And I post all relevant produced logs to make the problem description as complete as possible. Sorry if this is confusing, I don't really know what I'm doing but I want to make a bug report that can be acted upon.

Sep 11 2020, 9:22 AM · Bug Report
werner claimed T5061: writecert fails for ECC keys on PIV cards.
Sep 11 2020, 9:11 AM
gniibe added a comment to T5062: gpg: error getting version from 'scdaemon': Forbidden.

Sorry, my editing error. I wanted to write:

Sep 11 2020, 8:51 AM · Bug Report
avemilia updated the task description for T5064: Forwarded gpg ssh agent doesn't see smartcard ssh key, only (none).
Sep 11 2020, 8:38 AM · Bug Report
avemilia updated the task description for T5064: Forwarded gpg ssh agent doesn't see smartcard ssh key, only (none).
Sep 11 2020, 8:33 AM · Bug Report
avemilia updated the task description for T5064: Forwarded gpg ssh agent doesn't see smartcard ssh key, only (none).
Sep 11 2020, 8:27 AM · Bug Report
avemilia created T5064: Forwarded gpg ssh agent doesn't see smartcard ssh key, only (none).
Sep 11 2020, 8:25 AM · Bug Report
avemilia added a comment to T5062: gpg: error getting version from 'scdaemon': Forbidden.

Thank you for the response.

Sep 11 2020, 8:14 AM · Bug Report
gniibe claimed T5062: gpg: error getting version from 'scdaemon': Forbidden.
Sep 11 2020, 6:39 AM · Bug Report
gniibe added a comment to T5062: gpg: error getting version from 'scdaemon': Forbidden.

Perhaps, for the usability, it would be good for gpg-agent's "extra" access to allow some of SCD commands.
This can align the current limitation, I suppose.

Sep 11 2020, 6:38 AM · Bug Report
l10n daemon script <scripty@kde.org> committed rKLEOPATRA95cb1408acde: SVN_SILENT made messages (.desktop file) - always resolve ours (authored by l10n daemon script <scripty@kde.org>).
SVN_SILENT made messages (.desktop file) - always resolve ours
Sep 11 2020, 5:57 AM
gniibe closed T4957: OpenPGP card protocol 3.4 with Yubikey as Resolved.

The data object 0x00FA is now supported. And other changes are not needed.

Sep 11 2020, 5:17 AM · scd
gniibe created T5063: Use of some "SCD" command through extra socket.
Sep 11 2020, 4:35 AM · Bug Report
gniibe added a comment to T5062: gpg: error getting version from 'scdaemon': Forbidden.

I think that your configuration does not work well for gpg --card-status when you want to use local scdaemon service from remote machine.
By using "extra" socket, only a few commands are allowed to execute.

Sep 11 2020, 4:28 AM · Bug Report
gniibe added a project to T5041: gpg-agent/scdaemon/gnuk unable to sign ssh certificate (Couldn't certify key … via agent: agent refused operation): Restricted Project.
Sep 11 2020, 2:20 AM · Restricted Project, ssh, Bug Report
gniibe changed the status of T5041: gpg-agent/scdaemon/gnuk unable to sign ssh certificate (Couldn't certify key … via agent: agent refused operation) from Open to Testing.

Fixed in Gnuk 1.2.16, although it still has a limitation by the I/O buffer size.

Sep 11 2020, 2:19 AM · Restricted Project, ssh, Bug Report

Sep 10 2020

avemilia updated the task description for T5062: gpg: error getting version from 'scdaemon': Forbidden.
Sep 10 2020, 11:58 PM · Bug Report
avemilia created T5062: gpg: error getting version from 'scdaemon': Forbidden.
Sep 10 2020, 11:56 PM · Bug Report
aheinecke committed rWbeb3dc518f05: MSI: Create a "latest" symlink for download (authored by aheinecke).
MSI: Create a "latest" symlink for download
Sep 10 2020, 5:27 PM
werner added a comment to T5061: writecert fails for ECC keys on PIV cards.

Are you using libgcrypt 1.8 or master (to be 1.9)?

Sep 10 2020, 5:21 PM
ikloecker committed rKLEOPATRA42608b7f1576: Support transferring X.509 signing certificates to PIV cards (authored by ikloecker).
Support transferring X.509 signing certificates to PIV cards
Sep 10 2020, 5:13 PM
ikloecker created T5061: writecert fails for ECC keys on PIV cards.
Sep 10 2020, 3:33 PM
aheinecke committed rGd62797ebcc15: doc: Update and extend module overview (authored by aheinecke).
doc: Update and extend module overview
Sep 10 2020, 2:00 PM
werner committed rG29977e21d181: keyboxd: Add options --openpgp and --x509 to SEARCH. (authored by werner).
keyboxd: Add options --openpgp and --x509 to SEARCH.
Sep 10 2020, 1:06 PM
werner committed rGc9677d416e6f: keyboxd: Add basic support for X.509. (authored by werner).
keyboxd: Add basic support for X.509.
Sep 10 2020, 1:06 PM
werner committed rG6fcc263c182f: keyboxd: Use D-lines instead of a separate thread. (authored by werner).
keyboxd: Use D-lines instead of a separate thread.
Sep 10 2020, 1:06 PM
werner committed rGed6ebb696e40: sm: Implement initial support for keyboxd. (authored by werner).
sm: Implement initial support for keyboxd.
Sep 10 2020, 1:06 PM
werner committed rG72e04b03b1a7: dirmngr: Fix the pool keyserver case for a single host in the pool. (authored by werner).
dirmngr: Fix the pool keyserver case for a single host in the pool.
Sep 10 2020, 11:09 AM
werner committed rGa084924d07be: gpg-connect-agent: Catch signals so that SIGPIPE is ignored. (authored by werner).
gpg-connect-agent: Catch signals so that SIGPIPE is ignored.
Sep 10 2020, 11:09 AM
werner committed rGe4f3b74c9106: dirmngr: Align the gnutls use of CAs with the ntbtls code. (authored by werner).
dirmngr: Align the gnutls use of CAs with the ntbtls code.
Sep 10 2020, 11:09 AM
werner committed rGfaabc49797df: dirmngr: Align the gnutls use of CAs with the ntbtls code. (authored by werner).
dirmngr: Align the gnutls use of CAs with the ntbtls code.
Sep 10 2020, 10:51 AM
werner committed rG3cf9bb4d73cf: gpg-connect-agent: Catch signals so that SIGPIPE is ignored. (authored by werner).
gpg-connect-agent: Catch signals so that SIGPIPE is ignored.
Sep 10 2020, 10:51 AM
werner committed rG5a87011c46b5: dirmngr: Fix the pool keyserver case for a single host in the pool. (authored by werner).
dirmngr: Fix the pool keyserver case for a single host in the pool.
Sep 10 2020, 10:51 AM
gniibe committed rGd4cb774ddd88: scd: Flush KDF DO (0x00F9) when it's being set. (authored by gniibe).
scd: Flush KDF DO (0x00F9) when it's being set.
Sep 10 2020, 8:20 AM
Laurent Montel <montel@kde.org> committed rKLEOPATRA65137e1fcc82: Modernize code (authored by Laurent Montel <montel@kde.org>).
Modernize code
Sep 10 2020, 7:51 AM
werner closed T2312: GnuPG 2.1 migration fails due to permissions but appears to succeed as Resolved.

It should be possible to apply the patch rG7de9ed521e516879a72ec6ff6400aed4bdce5920
for 2.2 also to older 2.1 or 2.2 versions,

Sep 10 2020, 7:50 AM · gnupg, Bug Report
werner committed rG7de9ed521e51: agent: Keep some permissions of private-keys-v1.d. (authored by werner).
agent: Keep some permissions of private-keys-v1.d.
Sep 10 2020, 7:47 AM

Sep 9 2020

werner added a comment to T2312: GnuPG 2.1 migration fails due to permissions but appears to succeed.

That keeps the group permissions of an existing directory. Needs to be backported to 2.2

Sep 9 2020, 8:37 PM · gnupg, Bug Report
werner committed rG8ed85ef3de9c: agent: Keep some permissions of private-keys-v1.d. (authored by werner).
agent: Keep some permissions of private-keys-v1.d.
Sep 9 2020, 8:36 PM
werner committed rGadec6a84f6ee: kbx: Change X.509 S/N search definition. (authored by werner).
kbx: Change X.509 S/N search definition.
Sep 9 2020, 8:36 PM
nursoda created T5060: Feature to migrate a card based to a file based key pair.
Sep 9 2020, 7:59 PM · gnupg24, gnupg (gpg23), Feature Request
werner reopened T2312: GnuPG 2.1 migration fails due to permissions but appears to succeed as "Open".

The fix we have there has the problem that it forcefully changes the permissions. Consider the case that for example that group access was provided which will currently be reset with each start of gpg-agent.

Sep 9 2020, 7:41 PM · gnupg, Bug Report
Albert Astals Cid <aacid@kde.org> committed rLIBKLEOfcc724e4276f: Merge branch 'work/aacid/non_deprecated_reset' into 'master' (authored by Albert Astals Cid <aacid@kde.org>).
Merge branch 'work/aacid/non_deprecated_reset' into 'master'
Sep 9 2020, 6:14 PM
Albert Astals Cid <aacid@kde.org> committed rLIBKLEOf261e2913c6d: Don't use deprecated model reset() function (authored by Albert Astals Cid <aacid@kde.org>).
Don't use deprecated model reset() function
Sep 9 2020, 6:14 PM
ikloecker committed rKLEOPATRA5d51a75dda4b: Transfer certificate data of X.509 encryption certificate to PIV cards (authored by ikloecker).
Transfer certificate data of X.509 encryption certificate to PIV cards
Sep 9 2020, 5:05 PM
aheinecke committed rW4dcba538b74e: Improve VERSION file (authored by aheinecke).
Improve VERSION file
Sep 9 2020, 4:52 PM
aheinecke committed rW19ab8021d757: MSI: Improve vsd upload targets (authored by aheinecke).
MSI: Improve vsd upload targets
Sep 9 2020, 4:52 PM
aheinecke changed the status of T5056: About Kleopatra showing unknown version number from Open to Testing.

This is fixed now, but of course it will only affect the next release :-/

Sep 9 2020, 4:32 PM · kleopatra
aheinecke committed rLIBKLEO913aba839e11: Windows: Read Gpg4win Version always if it exists (authored by aheinecke).
Windows: Read Gpg4win Version always if it exists
Sep 9 2020, 4:32 PM
bernhard added a comment to T5028: gpg --locate-key should refetch via wkd, if configured and no good pubkey found.

--locate-external-keys exists since 2.2.17 and ignores the local keys.

Sep 9 2020, 4:00 PM · gnupg, Feature Request
werner committed rG5b6cfef62092: build: Fix recent commit for SOURCE_DATE_EPOCH. (authored by werner).
build: Fix recent commit for SOURCE_DATE_EPOCH.
Sep 9 2020, 3:41 PM
aheinecke added a comment to T4123: Pinentry-qt does not always become active foreground window (especially when requesting pin for authentication).

There are two problems that might be mixed in here:
What I noticed sometimes is that pinentry-qt properly becomes the ForegroundWindow but the input focus is not set on the line, even though an active cursor is shown in the line.
This might be a pinentry-qt specific issue and I look into that.

Sep 9 2020, 2:17 PM · pinentry, Bug Report, gpg4win
werner committed rMe4ee706e270c: core: Fully implement the inquire callback for assuan_transact (authored by werner).
core: Fully implement the inquire callback for assuan_transact
Sep 9 2020, 12:14 PM
leder added a comment to T5057: Smartcard's secret key cannot be found for decryption.

@gniibe I wonder, if file --export with following --import would do the trick!?

Sep 9 2020, 9:08 AM · gnupg (gpg22), Bug Report
werner added a comment to T5059: Could not create key pair: Timeout.

Checkout the taskbar. While creating the key you should get a (blinking) notification for pinentry - the tool to enter the passphrase. Under some circumstances Windows won't pop up that tool and you need to click on its icon in the taskbar.

Sep 9 2020, 8:49 AM · No Response, Support, kleopatra
werner added a comment to T5057: Smartcard's secret key cannot be found for decryption.

@gniibe: Actually I implemented this recently. Support for this is in gpg-card

Sep 9 2020, 8:47 AM · gnupg (gpg22), Bug Report
gniibe triaged T5057: Smartcard's secret key cannot be found for decryption as Normal priority.
Sep 9 2020, 8:32 AM · gnupg (gpg22), Bug Report
gniibe added a comment to T5057: Smartcard's secret key cannot be found for decryption.

@leder I agree that it is useful if OpenPGP public key can be (directly or indirectly) retrieved from a card.

Sep 9 2020, 8:31 AM · gnupg (gpg22), Bug Report
leder added a comment to T5057: Smartcard's secret key cannot be found for decryption.

One more idea: It is a riddle to me why I can configure keyserver http://pool.sks-keyservers.net/ and then do a --search-keys, but it is impossible to do --receive-keys with the following error:

Sep 9 2020, 7:43 AM · gnupg (gpg22), Bug Report
leder closed T5057: Smartcard's secret key cannot be found for decryption as Resolved.

Thank you, gniibe!

Sep 9 2020, 7:19 AM · gnupg (gpg22), Bug Report
andfox added a comment to T5055: APPCRASH with libKF5ConfigWidgets.dll.

I have run the DbgView test twice, I don't know if there is the data you need.

Sep 9 2020, 4:10 AM · Bug Report, gpg4win
gniibe added a comment to T5057: Smartcard's secret key cannot be found for decryption.

Please note that your private keys are on your card, together with finger print information. But there is no place to have OpenPGP public keys on the card. I guess that this is a possible cause of confusion.

Sep 9 2020, 3:08 AM · gnupg (gpg22), Bug Report
gniibe added inline comments to rG0db9c83555b4: scd: Add a workaround for Yubikey..
Sep 9 2020, 2:06 AM

Sep 8 2020

leder added a comment to T5057: Smartcard's secret key cannot be found for decryption.

Now I am even more confused! This is key No. 1 - the number on the keyserver w/ --search-keys:

Sep 8 2020, 6:20 PM · gnupg (gpg22), Bug Report
h122642 created T5059: Could not create key pair: Timeout.
Sep 8 2020, 5:09 PM · No Response, Support, kleopatra
werner added a comment to T5057: Smartcard's secret key cannot be found for decryption.

On an OpenPGP card the key no 1 (OPENPGP.1) is a sign-only key - you can't use it for decryption even if you somehow managed to encrypt to that key. That restriction is enforced by the card.

Sep 8 2020, 4:54 PM · gnupg (gpg22), Bug Report
ikloecker committed rKLEOPATRA911edbaa0d2b: Reorder method definitions (authored by ikloecker).
Reorder method definitions
Sep 8 2020, 3:42 PM