Page MenuHome GnuPG
Feed Advanced Search

Aug 24 2022

werner added a comment to T6145: USB device detection by scdaemon.

Inserting as well as removal is detected on my machine always only after 25 seconds

Aug 24 2022, 10:33 AM · gnupg24, scd
gniibe added a comment to T6145: USB device detection by scdaemon.

I wrote a simple testusb.c if monitoring USB devices works:

#include <stdlib.h>
#include <libusb.h>
#include <poll.h>
#include <stdio.h>
Aug 24 2022, 4:16 AM · gnupg24, scd

Aug 23 2022

werner added projects to T6145: USB device detection by scdaemon: gnupg (gpg23), scd.
Aug 23 2022, 3:51 PM · gnupg24, scd

Aug 22 2022

tigernero added a comment to T6070: Yubikey 5C 'not available: card error' regression.

exact v.2.3.8 is expected, generally I don't import Key on yubico I generate them directly from yubico itself in order to have the private Key created directly on yubico and not exportable.

Aug 22 2022, 9:47 PM · gnupg (gpg23), scd, Bug Report
acerbisgianluca added a comment to T6070: Yubikey 5C 'not available: card error' regression.

Hi! I would like to add my experience about this issue.

Aug 22 2022, 6:42 PM · gnupg (gpg23), scd, Bug Report

Aug 21 2022

tigernero added a comment to T6070: Yubikey 5C 'not available: card error' regression.

what's new for a possible gnupg 2.3.8 or gpg4win 4.0.4 release?

Aug 21 2022, 2:30 PM · gnupg (gpg23), scd, Bug Report

Aug 15 2022

werner added a comment to T6135: Agent, P15: Insert Smartcard query uses serial number instead of $DISPSERIALNO.

Here is an example


using this key file:

Aug 15 2022, 1:07 PM · gnupg24 (gnupg-2.4.3), scd
werner added a comment to T6135: Agent, P15: Insert Smartcard query uses serial number instead of $DISPSERIALNO.

If the stub has been created or updated we will now ask for the card
with the Display-SN. If in addition a Label has been set to the key
that label is also shown. Note that the Display-S/N is associated wit
a card but the Label is associated with a key. For example if the
same key has been stored on two cards, the prompt will ask for one of
those cards but shows the same same Label. It is sufficient to insert
any of the cards with the key because that is what we actually need.

Aug 15 2022, 12:56 PM · gnupg24 (gnupg-2.4.3), scd
werner added a comment to T6135: Agent, P15: Insert Smartcard query uses serial number instead of $DISPSERIALNO.

In master we already have Token lines which are created but not yet used. I am going to extend this with the display S/N and drop the idea of a separate Display-SN entry.

Aug 15 2022, 12:18 PM · gnupg24 (gnupg-2.4.3), scd

Aug 12 2022

werner added a comment to T6135: Agent, P15: Insert Smartcard query uses serial number instead of $DISPSERIALNO.

I am going to introduce a new DisplaySN: value for 2.2 which might also be useful for master.

Aug 12 2022, 5:58 PM · gnupg24 (gnupg-2.4.3), scd
werner added a comment to T6135: Agent, P15: Insert Smartcard query uses serial number instead of $DISPSERIALNO.

We have changes for this in master; I need to see whether it is possible to backport them.

Aug 12 2022, 1:28 PM · gnupg24 (gnupg-2.4.3), scd
aheinecke triaged T6135: Agent, P15: Insert Smartcard query uses serial number instead of $DISPSERIALNO as Normal priority.
Aug 12 2022, 1:22 PM · gnupg24 (gnupg-2.4.3), scd

Aug 11 2022

werner added a comment to T5862: authentication with USB token.

While playing with your scripts I figured that it would be useful to enhance the KEYINFO command. With
rG989eae648c8f3d2196517e8fc9cce247b21f9629 we could now

Aug 11 2022, 11:30 AM · gpgagent, Feature Request, scd

Aug 4 2022

sylvain-spryker added a comment to T6070: Yubikey 5C 'not available: card error' regression.

@gniibe Perfect, I got the update during the night actually. Thanks a lot for your work 🙏 .

Aug 4 2022, 7:02 AM · gnupg (gpg23), scd, Bug Report
gniibe added a comment to T6070: Yubikey 5C 'not available: card error' regression.

For the firmware 5.4.3, I confirmed that it works well with the changes:
https://dev.gnupg.org/T6070#160150

Aug 4 2022, 1:40 AM · gnupg (gpg23), scd, Bug Report

Aug 3 2022

sylvain-spryker added a comment to T6070: Yubikey 5C 'not available: card error' regression.

Hi lovely people,

Aug 3 2022, 3:38 PM · gnupg (gpg23), scd, Bug Report

Aug 2 2022

tigernero added a comment to T6070: Yubikey 5C 'not available: card error' regression.

I have exactly this problem with yubikey here,
since i upgraded to gpg4win version 4.0.3 which contains gnupg 2.3.7 i get the same error as openpgp key not recognized.

Aug 2 2022, 12:25 PM · gnupg (gpg23), scd, Bug Report
OJFord added a comment to T6070: Yubikey 5C 'not available: card error' regression.

@tigernero 2.3.8 is not yet released. Pretty sure gpg4win is a separate project, presumably you'll see a changelog entry here (as there is bumping to 2.3.7 in the latest 4.0.3) when it's in:
https://www.gpg4win.org/change-history.html
https://www.gpg4win.org/support.html

Aug 2 2022, 11:01 AM · gnupg (gpg23), scd, Bug Report

Jul 30 2022

tigernero added a comment to T6070: Yubikey 5C 'not available: card error' regression.

I can't find a url to download gnupg 2.3.8 for windows is it possible to know when gpg4win v.4.0.4 is out which fixes this bug? because currently on windows systems I am stuck using yubikey.

Jul 30 2022, 9:53 AM · gnupg (gpg23), scd, Bug Report

Jul 29 2022

werner closed T5359: Kleopatra: Loop in DeviceInfoWatcher with GnuPG 2.3 on Windows as Resolved.

Fixed quite some time ago.

Jul 29 2022, 4:19 PM · Restricted Project, scd, Restricted Project, kleopatra

Jul 27 2022

gniibe added a comment to T6070: Yubikey 5C 'not available: card error' regression.

I just confirmed that firmware 5.4.3 works fine with the changes (to be 2.2.37 and 2.3.8).

Jul 27 2022, 7:58 AM · gnupg (gpg23), scd, Bug Report
gniibe removed a project from T5977: Smartcard PIN stays in clear in memory: Restricted Project.

New release of libassuan is expected to make sure it's cleared off.

Jul 27 2022, 2:39 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

Jul 26 2022

werner closed T5977: Smartcard PIN stays in clear in memory as Resolved.
Jul 26 2022, 9:17 PM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

Jul 15 2022

gniibe merged T6082: Failed to decrypt with YubiKey on m1 mac into T6070: Yubikey 5C 'not available: card error' regression.
Jul 15 2022, 2:50 AM · gnupg (gpg23), scd, Bug Report
gniibe added a comment to T6070: Yubikey 5C 'not available: card error' regression.

Does Yubico furnish you with devices for test...

Jul 15 2022, 2:06 AM · gnupg (gpg23), scd, Bug Report

Jul 14 2022

OJFord added a comment to T6070: Yubikey 5C 'not available: card error' regression.

Thanks @gniibe. Does Yubico furnish you with devices for test, or did you have to order that at your own/the project's expense?

Jul 14 2022, 1:19 PM · gnupg (gpg23), scd, Bug Report
ikloecker merged T6077: gpg 2.3.6 and 2.3.7 don't seem to work with Yubikey anymore into T6070: Yubikey 5C 'not available: card error' regression.
Jul 14 2022, 9:07 AM · gnupg (gpg23), scd, Bug Report
gniibe added projects to T6070: Yubikey 5C 'not available: card error' regression: Restricted Project, scd, gnupg (gpg23), backport.
Jul 14 2022, 9:05 AM · gnupg (gpg23), scd, Bug Report

Jul 12 2022

gniibe added a project to T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com: backport.

I'm going to backport this to 2.2, as it found useful.

Jul 12 2022, 9:09 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd
gniibe closed T5702: Display prompt to user when YubiKey is waiting for touch confirmation, a subtask of T5984: gpg-agent interaction improvement (smartcard improvement #3), as Resolved.
Jul 12 2022, 7:10 AM · ssh, gpgagent, scd
gniibe closed T5099: Confirmation dialog for remote access (restricted extra socket), a subtask of T5984: gpg-agent interaction improvement (smartcard improvement #3), as Resolved.
Jul 12 2022, 3:30 AM · ssh, gpgagent, scd
gniibe closed T5985: private-key: Support "Use-for-ssh" flag, a subtask of T5984: gpg-agent interaction improvement (smartcard improvement #3), as Resolved.
Jul 12 2022, 3:28 AM · ssh, gpgagent, scd
gniibe added a comment to T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys.

And 2.3.7.

Jul 12 2022, 3:22 AM · backport, yubikey, scd, segv, Bug Report
gniibe closed T5963: Yubikey: scdaemon causes libc segfault and clashes with ECC keys as Resolved.

Fixed in 2.2.36.

Jul 12 2022, 3:19 AM · backport, yubikey, scd, segv, Bug Report
gniibe closed T5986: card: Show "Label:" when prompting the insertion of a card, a subtask of T5984: gpg-agent interaction improvement (smartcard improvement #3), as Resolved.
Jul 12 2022, 3:17 AM · ssh, gpgagent, scd
gniibe closed T5986: card: Show "Label:" when prompting the insertion of a card as Resolved.

It's in 2.3.7.

Jul 12 2022, 3:17 AM · ssh, gpgagent, scd
gniibe closed T5987: card: New field to specify refusing operations when card/token is not available as Resolved.

It's in 2.3.7.

Jul 12 2022, 3:14 AM · ssh, gpgagent, scd
gniibe closed T5987: card: New field to specify refusing operations when card/token is not available, a subtask of T5984: gpg-agent interaction improvement (smartcard improvement #3), as Resolved.
Jul 12 2022, 3:14 AM · ssh, gpgagent, scd
gniibe closed T5988: agent: Add new command to update private key fields, a subtask of T5984: gpg-agent interaction improvement (smartcard improvement #3), as Resolved.
Jul 12 2022, 3:13 AM · ssh, gpgagent, scd
gniibe removed a project from T6003: card: READCERT with KEYGRIP: Restricted Project.

It's in 2.3.7.

Jul 12 2022, 3:13 AM · scd, Feature Request
gniibe closed T6010: gpg-connect-agent: /definqprog semantics enhancement, a subtask of T5862: authentication with USB token, as Resolved.
Jul 12 2022, 3:12 AM · gpgagent, Feature Request, scd
gniibe closed T6010: gpg-connect-agent: /definqprog semantics enhancement as Resolved.

It's in 2.3.7.

Jul 12 2022, 3:12 AM · Feature Request, scd
gniibe closed T6012: gpg-agent: Add --format=ssh option for READKEY, a subtask of T5862: authentication with USB token, as Resolved.
Jul 12 2022, 3:11 AM · gpgagent, Feature Request, scd

Jul 7 2022

gniibe closed T5979: SCardListReaders: Conditional jump or move depends on uninitialised value(s) as Resolved.
Jul 7 2022, 6:50 AM · backport, gnupg, scd, patch

Jun 28 2022

gniibe closed T5996: ssh,card: "Use-for-ssh:" (was: OpenPGP.3) keys should be on the list even when card is not available, a subtask of T5984: gpg-agent interaction improvement (smartcard improvement #3), as Resolved.
Jun 28 2022, 3:29 AM · ssh, gpgagent, scd
gniibe closed T5996: ssh,card: "Use-for-ssh:" (was: OpenPGP.3) keys should be on the list even when card is not available as Resolved.
Jun 28 2022, 3:29 AM · ssh, gpgagent, scd
gniibe renamed T5996: ssh,card: "Use-for-ssh:" (was: OpenPGP.3) keys should be on the list even when card is not available from ssh,card: OpenPGP.3 keys should be on the list (as default) even when card is not available to ssh,card: "Use-for-ssh:" (was: OpenPGP.3) keys should be on the list even when card is not available.
Jun 28 2022, 3:22 AM · ssh, gpgagent, scd
gniibe added a comment to T5996: ssh,card: "Use-for-ssh:" (was: OpenPGP.3) keys should be on the list even when card is not available.

Having "Use-for-ssh" flag now, experience shows that including OpenPGP.3 keys by default is not convenient.

Jun 28 2022, 3:20 AM · ssh, gpgagent, scd

Jun 9 2022

gniibe closed T5831: Backport (f808012a) scd: Use lock_slot for apdu_send_direct. to GnuPG 2.2 as Resolved.
Jun 9 2022, 7:56 AM · gnupg (gpg22), Bug Report, scd
gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

Backported to GnuPG 2.2.

Jun 9 2022, 7:39 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

Jun 8 2022

gniibe renamed T5862: authentication with USB token from authentication with USB token, ~~screen lock on token removal~~ to authentication with USB token.
Jun 8 2022, 4:08 AM · gpgagent, Feature Request, scd
gniibe renamed T5862: authentication with USB token from authentication with USB token, screen lock on token removal to authentication with USB token, ~~screen lock on token removal~~.
Jun 8 2022, 4:07 AM · gpgagent, Feature Request, scd
gniibe added a comment to T5862: authentication with USB token.

Now, it also supports a reader with pinpad.

Jun 8 2022, 3:38 AM · gpgagent, Feature Request, scd

Jun 6 2022

gniibe added projects to T5862: authentication with USB token: gpgagent, Restricted Project.
Jun 6 2022, 7:02 AM · gpgagent, Feature Request, scd
gniibe added a comment to T5862: authentication with USB token.

Updated (with T6012):


Jun 6 2022, 7:00 AM · gpgagent, Feature Request, scd

Jun 2 2022

gniibe added a project to T6010: gpg-connect-agent: /definqprog semantics enhancement: Restricted Project.
Jun 2 2022, 8:53 AM · Feature Request, scd
gniibe added a comment to T5862: authentication with USB token.

See https://github.com/google/xsecurelock/blob/master/helpers/authproto.h
for the interaction between xsecurelock and the helper.

Jun 2 2022, 8:25 AM · gpgagent, Feature Request, scd
gniibe triaged T6010: gpg-connect-agent: /definqprog semantics enhancement as Normal priority.
Jun 2 2022, 8:15 AM · Feature Request, scd
gniibe added a comment to T5862: authentication with USB token.

I changed gpg-connect-agent (added --unbuffered option) so that we can write shell script interacting gpg-agent.

Jun 2 2022, 8:06 AM · gpgagent, Feature Request, scd
gniibe added a comment to T5862: authentication with USB token.

Wrote a shell script for xsecurelock's authproto (helper executable):

Jun 2 2022, 8:02 AM · gpgagent, Feature Request, scd

Jun 1 2022

gniibe claimed T5977: Smartcard PIN stays in clear in memory.
Jun 1 2022, 5:05 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

May 29 2022

werner added a project to T4938: Support Signature Card V2.0 (NKS15): eIDAS.
May 29 2022, 3:55 PM · eIDAS, scd, Feature Request, S/MIME
werner added a project to T5219: scd: Generating CSR for SigG NetKey card key fails: eIDAS.
May 29 2022, 3:54 PM · gnupg24, eIDAS, gnupg (gpg23), scd
werner raised the priority of T5219: scd: Generating CSR for SigG NetKey card key fails from Low to Normal.

Related problem exists with the modern ESIGN application. I think I fixed that but the whole Telesec eIDAS QES case needs more work.

May 29 2022, 3:51 PM · gnupg24, eIDAS, gnupg (gpg23), scd

May 27 2022

sergi added a watcher for scd: sergi.
May 27 2022, 10:10 PM
gniibe added a project to T5987: card: New field to specify refusing operations when card/token is not available: Restricted Project.
May 27 2022, 3:02 AM · ssh, gpgagent, scd
gniibe added a comment to T5987: card: New field to specify refusing operations when card/token is not available.

Default is "yes". When Prompt: no is specified, it doesn't ask but fails.

May 27 2022, 2:48 AM · ssh, gpgagent, scd
gniibe added a comment to T5987: card: New field to specify refusing operations when card/token is not available.

The behavior has been changed by T5996, to ask card insertion for the consistency of the semantics of configuration.

May 27 2022, 2:47 AM · ssh, gpgagent, scd
gniibe updated the task description for T5987: card: New field to specify refusing operations when card/token is not available.
May 27 2022, 2:45 AM · ssh, gpgagent, scd

May 26 2022

gniibe added a project to T5996: ssh,card: "Use-for-ssh:" (was: OpenPGP.3) keys should be on the list even when card is not available: Restricted Project.
May 26 2022, 10:19 AM · ssh, gpgagent, scd

May 25 2022

gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

Pushed the solution which doesn't require new flag for libassuan.

May 25 2022, 9:42 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a project to T5977: Smartcard PIN stays in clear in memory: Restricted Project.
May 25 2022, 9:39 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a project to T5977: Smartcard PIN stays in clear in memory: backport.
May 25 2022, 7:59 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

^-- I withdraw the solution (with error value) above.

May 25 2022, 4:57 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

May 24 2022

gniibe added a project to T6003: card: READCERT with KEYGRIP: Restricted Project.
May 24 2022, 2:04 PM · scd, Feature Request
gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

Or, it would be good for client side (in this case, gpg-agent) to specify the flag in the inquiry callback, that is, it's a kind of transient flag for a single transaction.

May 24 2022, 10:45 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

Revised version with new flag ASSUAN_CLEAR_INQUIRY_DATA.

May 24 2022, 10:33 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a comment to T6003: card: READCERT with KEYGRIP.

Pushed rGea97683d5820: scd: Support automatic card selection for READCERT with keygrip..
I think that it works for PIV card.

May 24 2022, 9:21 AM · scd, Feature Request
gniibe updated the task description for T6003: card: READCERT with KEYGRIP.
May 24 2022, 9:13 AM · scd, Feature Request
gniibe triaged T6003: card: READCERT with KEYGRIP as Normal priority.
May 24 2022, 7:22 AM · scd, Feature Request

May 23 2022

gniibe added a comment to T5862: authentication with USB token.

I did some research about scree lockers (xtrlock, slock, swaylock, etc.).

May 23 2022, 9:11 AM · gpgagent, Feature Request, scd
gniibe renamed T5984: gpg-agent interaction improvement (smartcard improvement #3) from gpg-agent interaction improvement ( (smartcard improvement #3) to gpg-agent interaction improvement (smartcard improvement #3).
May 23 2022, 6:41 AM · ssh, gpgagent, scd
gniibe added a comment to T5984: gpg-agent interaction improvement (smartcard improvement #3).

The order to solve:

May 23 2022, 3:39 AM · ssh, gpgagent, scd
gniibe triaged T5996: ssh,card: "Use-for-ssh:" (was: OpenPGP.3) keys should be on the list even when card is not available as Normal priority.
May 23 2022, 3:35 AM · ssh, gpgagent, scd
gniibe lowered the priority of T5985: private-key: Support "Use-for-ssh" flag from Normal to Low.
May 23 2022, 3:24 AM · Feature Request, ssh, gpgagent
gniibe triaged T5995: Better prompt with SETKEYDESC as Normal priority.
May 23 2022, 3:15 AM · gnupg24, ssh, gpgagent, scd
gniibe added a comment to T5985: private-key: Support "Use-for-ssh" flag.

This is an experimental patch to support "Use-for-ssh":

May 23 2022, 2:55 AM · Feature Request, ssh, gpgagent

May 20 2022

gniibe added a comment to T5985: private-key: Support "Use-for-ssh" flag.

cmd_keyinfo should be also updated to access the field correctly.

May 20 2022, 7:59 AM · Feature Request, ssh, gpgagent
gniibe added a project to T5986: card: Show "Label:" when prompting the insertion of a card: Restricted Project.
May 20 2022, 7:41 AM · ssh, gpgagent, scd
gniibe added subtasks for T5984: gpg-agent interaction improvement (smartcard improvement #3): T5099: Confirmation dialog for remote access (restricted extra socket), T5702: Display prompt to user when YubiKey is waiting for touch confirmation.
May 20 2022, 6:53 AM · ssh, gpgagent, scd
gniibe renamed T5984: gpg-agent interaction improvement (smartcard improvement #3) from smartcard interaction improvement #3 to gpg-agent interaction improvement ( (smartcard improvement #3).
May 20 2022, 6:39 AM · ssh, gpgagent, scd
gniibe triaged T5988: agent: Add new command to update private key fields as Normal priority.
May 20 2022, 6:38 AM · Feature Request, ssh, gpgagent
gniibe triaged T5987: card: New field to specify refusing operations when card/token is not available as Normal priority.
May 20 2022, 6:33 AM · ssh, gpgagent, scd
gniibe added a comment to T5986: card: Show "Label:" when prompting the insertion of a card.

Also, it is better for a user, not to be asked confirmation (even if "Confirm:" is specified), that is, skipping the confirmation, when it is going to prompt the insertion of a card.

May 20 2022, 6:29 AM · ssh, gpgagent, scd
gniibe triaged T5986: card: Show "Label:" when prompting the insertion of a card as Normal priority.
May 20 2022, 6:27 AM · ssh, gpgagent, scd
gniibe triaged T5985: private-key: Support "Use-for-ssh" flag as Normal priority.
May 20 2022, 6:23 AM · Feature Request, ssh, gpgagent
gniibe triaged T5984: gpg-agent interaction improvement (smartcard improvement #3) as Normal priority.
May 20 2022, 6:21 AM · ssh, gpgagent, scd

May 19 2022

gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

For this particular issue of assuan_inquire, if it's needed, the point we should fix is:

May 19 2022, 6:29 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

May 18 2022

gniibe added a comment to T5862: authentication with USB token.

A concrete example use case in my mind is:

  • (Usual display manager (authentication by password or no-password))
  • session starts with "locked" state of screen
    • In the beginning, user needs to "unlock" the screen, by scdaemon authentication
  • (optionally, if needed) our-own-screen-locker should detect device removal, then, automatically locks the screen
  • our-own-screen-locker should detect idling user session, then, disabling the card, automatically locks the screen
  • our-own-screen-locker does authentication by scdaemon when it unlocks the screen
May 18 2022, 9:34 AM · gpgagent, Feature Request, scd
werner added a project to T5977: Smartcard PIN stays in clear in memory: libassuan.
May 18 2022, 9:14 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report