Page MenuHome GnuPG
Feed All Stories

Sep 18 2020

MaXi32 updated the task description for T5076: [solved] gpg-agent respawn another process randomly and causes cached passphrase check failed / expired.
Sep 18 2020, 8:24 PM · gnupg (gpg22), Bug Report
MaXi32 updated the task description for T5076: [solved] gpg-agent respawn another process randomly and causes cached passphrase check failed / expired.
Sep 18 2020, 8:17 PM · gnupg (gpg22), Bug Report
MaXi32 updated the task description for T5076: [solved] gpg-agent respawn another process randomly and causes cached passphrase check failed / expired.
Sep 18 2020, 8:12 PM · gnupg (gpg22), Bug Report
MaXi32 updated the task description for T5076: [solved] gpg-agent respawn another process randomly and causes cached passphrase check failed / expired.
Sep 18 2020, 8:11 PM · gnupg (gpg22), Bug Report
MaXi32 updated the task description for T5076: [solved] gpg-agent respawn another process randomly and causes cached passphrase check failed / expired.
Sep 18 2020, 8:10 PM · gnupg (gpg22), Bug Report
MaXi32 updated the task description for T5076: [solved] gpg-agent respawn another process randomly and causes cached passphrase check failed / expired.
Sep 18 2020, 8:10 PM · gnupg (gpg22), Bug Report
MaXi32 created T5076: [solved] gpg-agent respawn another process randomly and causes cached passphrase check failed / expired.
Sep 18 2020, 8:09 PM · gnupg (gpg22), Bug Report
mathieui created T5075: [python-gpgme] Traceback when running with python -OO.
Sep 18 2020, 5:11 PM · gpgme, Python, Bug Report
gniibe added a comment to T5062: gpg: error getting version from 'scdaemon': Forbidden.

Here are my test configurations.

Sep 18 2020, 10:15 AM · Bug Report
despair created T5074: Leaking fd.
Sep 18 2020, 8:29 AM · Restricted Project, gpgme, Bug Report
gniibe added a comment to T5062: gpg: error getting version from 'scdaemon': Forbidden.

I think that there is some misunderstanding how gpg-agent and scdaemon run.
In the normal configuration, those program run when you login to your desktop or it is invoked when used, then, after you logout, it dies.

Sep 18 2020, 5:01 AM · Bug Report
gniibe added a comment to T5062: gpg: error getting version from 'scdaemon': Forbidden.

For SSH, I don't think forwarding gpg-agent's socket (S.gpg-agent.ssh) is good idea; It complicates things unnecessarily. Simply use -A option of SSH, if possible.

Sep 18 2020, 3:58 AM · Bug Report
gniibe closed T5063: Use of some "SCD" command through extra socket, a subtask of T5062: gpg: error getting version from 'scdaemon': Forbidden, as Resolved.
Sep 18 2020, 3:55 AM · Bug Report
gniibe closed T5063: Use of some "SCD" command through extra socket as Resolved.
Sep 18 2020, 3:55 AM · Bug Report
gniibe added a comment to T5063: Use of some "SCD" command through extra socket.

Fixed in master.

Sep 18 2020, 3:52 AM · Bug Report
gniibe added a comment to T5063: Use of some "SCD" command through extra socket.

"SCD GETINFO card_list" is not needed actually. It was my misunderstanding.

Sep 18 2020, 3:51 AM · Bug Report
gniibe committed rGdfdcf1473897: common,agent,dirmngr,g10,tools: Fix split_fields API. (authored by gniibe).
common,agent,dirmngr,g10,tools: Fix split_fields API.
Sep 18 2020, 3:36 AM
gniibe committed rG8a84a71f3a58: agent: Fix regression for access through the extra secket. (authored by gniibe).
agent: Fix regression for access through the extra secket.
Sep 18 2020, 3:36 AM

Sep 17 2020

GwenDragon added a project to T5073: Date output of GnuPG not in correct language format: gnupg (gpg22).
Sep 17 2020, 6:00 PM · gnupg (gpg22), Bug Report
GwenDragon created T5073: Date output of GnuPG not in correct language format.
Sep 17 2020, 5:37 PM · gnupg (gpg22), Bug Report
bernhard closed T3379: Gpg4win windows publisher signature not always correctly displayed in UAC dialogue as Resolved.

Last report more than two years ago.

Sep 17 2020, 1:50 PM · gpg4win, Bug Report
ikloecker committed rKLEOPATRAe5c8e108c476: Replace one-liner slots with lambdas (authored by ikloecker).
Replace one-liner slots with lambdas
Sep 17 2020, 12:29 PM
ikloecker committed rKLEOPATRA9ff70905d1c6: Support writing a key pair to the Key Management slot of PIV cards (authored by ikloecker).
Support writing a key pair to the Key Management slot of PIV cards
Sep 17 2020, 12:29 PM
ikloecker committed rLIBKLEOdeec4c3a3ead: Make some features of the KeySelectionDialog optional (authored by ikloecker).
Make some features of the KeySelectionDialog optional
Sep 17 2020, 12:24 PM
ikloecker committed rLIBKLEOd8eb9b589096: Group UI member variables and initialize int variables (authored by ikloecker).
Group UI member variables and initialize int variables
Sep 17 2020, 12:24 PM
ikloecker committed rLIBKLEO6402b9ecdf11: Remove already initialized members from initialization lists (authored by ikloecker).
Remove already initialized members from initialization lists
Sep 17 2020, 12:24 PM
ikloecker committed rLIBKLEOf66e9986450f: Sort forward declarations (authored by ikloecker).
Sort forward declarations
Sep 17 2020, 12:24 PM
Georg3 created T5072: Keyserver presents the expiry date incorrectly in the S1 Public space.
Sep 17 2020, 10:35 AM · Keyserver
turkja added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

This is everything lsusb knows about the device:

Sep 17 2020, 8:28 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

And please report the output of lsusb -d 04e6:e003 for the information of the card reader.

Sep 17 2020, 8:27 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

@turkja Thanks for your information.
May I ask you one thing?
Please show me the usb VID:PID of your card reader.
Is it 04e6:e003?
You can examine a line of the output by lsusb.

Sep 17 2020, 8:23 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
turkja added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

Just wanted to add to my initial findings:

  • I was not using proprietary drivers (libscmccid.so.5.0.35), because the installer script fails to install on default CentOS 8 pcsc-lite. So the distribution pcsc-lite also doesn't have this issue.
  • Fastest way to test this condition is to just detach/attach the reader device.
  • Proprietary drivers doesn't support secure pin entry!
Sep 17 2020, 5:59 AM · Restricted Project, gnupg (gpg22), scd, Bug Report

Sep 16 2020

CaveTheCave added a comment to T5069: Concurrent auto-start of gpg-agent by multiple gpg instances..

Please note that:

  • There is a single user accessing the socket dir (which is the same as the homedir).
  • The socketdir (homedir) is not in a local directory. It is in another file system accessed via the SMB protocol, with a command such as:
gpg --homedir "//192.168.32.211/c$/gpghomedir" ...
Sep 16 2020, 8:33 PM · Not A Bug, No Response, Info Needed, gnupg (gpg22), Windows, Bug Report
CaveTheCave added a comment to T5069: Concurrent auto-start of gpg-agent by multiple gpg instances..

From the '&ovl' I assume that the lock file has been opened for overlapped IO.
Please see an extract from MSDN for the LockFileEx function:

Sep 16 2020, 5:03 PM · Not A Bug, No Response, Info Needed, gnupg (gpg22), Windows, Bug Report
ikloecker committed rKLEOPATRA21f911b31ecf: Support transferring X.509 certificates to the remaining card slots (authored by ikloecker).
Support transferring X.509 certificates to the remaining card slots
Sep 16 2020, 2:11 PM
glr created T5071: Doc fix: simple typos.
Sep 16 2020, 1:19 PM · Documentation, Bug Report
gniibe updated the task description for T5001: Card specification enhancement.
Sep 16 2020, 8:51 AM · Feature Request, scd
werner added a comment to T5069: Concurrent auto-start of gpg-agent by multiple gpg instances..

We need to figure out why the file locks seem not to work. gpg-agent processes whatch there own socket and terminate if that socket does not belong to them anymore.

Sep 16 2020, 8:10 AM · Not A Bug, No Response, Info Needed, gnupg (gpg22), Windows, Bug Report
gniibe claimed T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).
Sep 16 2020, 8:04 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

Thanks for sending.

Sep 16 2020, 8:01 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
werner added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

Here is the output for an SCM SPR532

Sep 16 2020, 7:55 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
werner added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

Bus 001 Device 123: ID 04e6:e003 SCM Microsystems, Inc. SPR532 PinPad SmartCard Reader

Sep 16 2020, 7:48 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

Is it an alias of SPR532? Please show me the USB vendor ID and product ID.

Sep 16 2020, 7:39 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
CaveTheCave added a comment to T5069: Concurrent auto-start of gpg-agent by multiple gpg instances..

Yes it is the windows version. It occurs both in Windows 10 and Windows Server 2016.
What I notice is that a gpg-agent is started, then after some time another one is started and the previous ends (presumably because it has lost the socket), etc. At any point in time, I can see only one agent instance running in the task manager, but with different process ids.

Sep 16 2020, 6:57 AM · Not A Bug, No Response, Info Needed, gnupg (gpg22), Windows, Bug Report
gniibe committed rGf4c07fc3d3c3: scd: Clear caching PIN at KDF setup. (authored by gniibe).
scd: Clear caching PIN at KDF setup.
Sep 16 2020, 6:15 AM
gniibe committed rG316a8cbc7523: scd: Add better support for KDF feature. (authored by gniibe).
scd: Add better support for KDF feature.
Sep 16 2020, 6:15 AM
gniibe committed rG8ff36630277f: scd: Clear PIN cache when changing key attributes. (authored by gniibe).
scd: Clear PIN cache when changing key attributes.
Sep 16 2020, 6:15 AM
gniibe committed rG8dfd0ebfd8cf: gpg,scd: Fix handling of KDF feature. (authored by gniibe).
gpg,scd: Fix handling of KDF feature.
Sep 16 2020, 5:52 AM
gniibe committed rG61aea64b3c17: scd: Fix the use case of verify_chv2 by CHECKPIN. (authored by gniibe).
scd: Fix the use case of verify_chv2 by CHECKPIN.
Sep 16 2020, 5:49 AM

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