Page MenuHome GnuPG
Feed Advanced Search

Jun 25 2021

werner added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

FWIW: We have always refused to support shared mode because we anticipated such problems. However, we have a customer using their own cards along with card maintenance software of them. For their purposes PCSC_SHARED works just fine makes and this is why I decided to add --pcsc-shared along with a warning that it is in general not a good idea.

Jun 25 2021, 8:54 AM · yubikey, Bug Report, scd
Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

You need to protect only 2 critical set of ADPU sequence Sign and Decrypt. All other can be done not safely and have a minor impact. Get generation and cards unlock can be profitable with the transaction mode... but is very rare user makes another use of the card in same time he start that’s command. The check external interference can protect from a bad start. I have started this ticket because my card suffer in exclusive mode render the use of openpgp not really usable. When my card is an pcsc-shared mode, all it's OK but the daemon not able to restore after external interference. The correction proposed is OK but I have made recommendations because this can cause a bad applet switch... if the state does not restore before trying to switch applet all it's OK. I am not actually able to set directly differential code but I have described in the patch the change I have made and this make my card very happy. Not problems and the pin was queried if another application makes interference.

Jun 25 2021, 4:18 AM · yubikey, Bug Report, scd
gniibe added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

There are multiple issues here.

Jun 25 2021, 2:59 AM · yubikey, Bug Report, scd

Jun 24 2021

Sanmilie requested changes to D534: scdaemon patch to support some situation with PCSC_SHARED (not all).

OK I have finally success to test... the master version has a problem with opening pcsc readers on windows I revert back on older version to able to correct this problem. For the current patch without yubikey reference. I suggest validating the interference in the first task for the maybe_switch app function.

Jun 24 2021, 6:40 PM · yubikey, scd

Jun 23 2021

gniibe added a comment to T5483: Yubikey OpenPGP app.

For KDF setup (00F9), setting it to '' (null, to reset the DO) doesn't work, but it raises 6a80.
Once KDF is enabled, only factory-reset can reset the feature.

Jun 23 2021, 8:20 AM · yubikey

Jun 21 2021

Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

In fact, the trigger is not yubikey but the pcsc-shared flag... If the pcsc-shared flag is enabled, you do check for interference because you are in shared condition. It is not really a race condition because you can put the driver in transaction mode. It’s more a turn-by-turn games but you can lose the card context status between turn.
If you lock the patch only for yubikey I’m not able to test with my device. You can add my manufacturer ID in the test please.

Jun 21 2021, 8:51 AM · yubikey, Bug Report, scd
gniibe added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

Thank you for your explanation.

Jun 21 2021, 6:16 AM · yubikey, Bug Report, scd
gniibe requested review of D534: scdaemon patch to support some situation with PCSC_SHARED (not all).
Jun 21 2021, 6:10 AM · yubikey, scd
Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

It's not a device is a card. NXP P71 security chips on the card in the 250Kb Rom with GlobalPlateform 2.1.1 It is not possible for a card to change CCID by applet. Card depends of reader CCID. When the card is on NFC readers, the FIDO applet is accessible not when it is on contact readers. But, when I am in NFC FIDO share the CCID. For the user point of view having multiple card for each applet is a bad thing to devices for one user. User search presently for multipurpose devices. DOOR, Login, Email-crypt, ledger. Actually for app is not recommended to use a reader in exclusive mode. By designs the card is stateless and for memory management deselect applet free mem from other applet. Presently in the best case the card has 144-255 KB of eeprom and 2k or ram.

Jun 21 2021, 4:43 AM · yubikey, Bug Report, scd
gniibe added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

If your token/card is not Yubikey and when it is possible to improve your token/card implementation, I would suggest not follow what Yubikey does for multiple applications; No multiple applications, but each feature with independent access (card+CCID, another card+different CCID, FIDO+HID, ...).

Jun 21 2021, 2:08 AM · yubikey, Bug Report, scd

Jun 20 2021

Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

i'am not able to test... i can't build for win32. i have some trouble with my mingw32 installation and the miss match with library for build a functional version of gnupg for win32.
seem missing dll after make install folder. do you have instruction to setup dev environment for build win32 binary ? I use a ubuntu with minwg32. ntbtls seem missing ksba but libksba is already install verion 1.6.0 other project detect correctly ksba. it's seem is a little bit complicated juste for building scd project. a make it working correctly on windows environements.

Jun 20 2021, 11:09 AM · yubikey, Bug Report, scd

Jun 19 2021

Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

Ok i have seen a problem with a double check here

Jun 19 2021, 7:26 AM · yubikey, Bug Report, scd

Jun 18 2021

Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

Ok, I test this, this seem can be corrected 90% of all possible interference with another application on multi-applet smartcard in shared readers context. I left you the feel back when have tested… thank for the prompt response.

Jun 18 2021, 6:05 PM · yubikey, Bug Report, scd
gniibe added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

For the problem of external application switch, please test this:

diff --git a/scd/app-common.h b/scd/app-common.h
index dffe1200d..d6e6f4c0a 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -194,6 +194,8 @@ struct app_ctx_s {
                       void *pincb_arg);
     gpg_error_t (*with_keygrip) (app_t app, ctrl_t ctrl, int action,
                                  const char *keygrip_str, int capability);
+    gpg_error_t (*check_aid) (app_t app, ctrl_t ctrl,
+                              const unsigned char *aid, size_t aidlen);
   } fnc;
 };
Jun 18 2021, 4:58 AM · yubikey, Bug Report, scd
gniibe added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

Here is the reference to GID specification:
https://docs.microsoft.com/en-us/previous-versions/windows/hardware/design/dn642100(v=vs.85)?redirectedfrom=MSDN

Jun 18 2021, 3:56 AM · yubikey, Bug Report, scd
gniibe added a project to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied: yubikey.

Let me add the tag "yubikey".
I think that it could be solved in different level, if I were the device manufacturer; And it would give users the best solution.

Jun 18 2021, 3:16 AM · yubikey, Bug Report, scd

Jun 15 2021

gniibe triaged T5487: GnuPG 2.2.28 not working with Yubikey NEO as High priority.

I set the priority 'High' as Yubikey NEO is the last one with source code available, IIUC.

Jun 15 2021, 1:41 AM · yubikey, gnupg (gpg22), Bug Report
gniibe added a comment to T5487: GnuPG 2.2.28 not working with Yubikey NEO.

@kianga
Thanks for your log.

Jun 15 2021, 1:40 AM · yubikey, gnupg (gpg22), Bug Report

Jun 14 2021

kianga added a comment to T5487: GnuPG 2.2.28 not working with Yubikey NEO.

I was just about to open a similar bug report, but I think this might be related. I’m also having trouble getting my Yubikey NEO to work with the latest update, however my log output looks different (see below) and this is on Windows (10 Pro, 21H1, build 19043.1055).

Jun 14 2021, 8:46 PM · yubikey, gnupg (gpg22), Bug Report
gbschenkel added a comment to T5487: GnuPG 2.2.28 not working with Yubikey NEO.

Thank you @werner I will apply the patch and recompile the .28 version for myself.

Jun 14 2021, 6:45 PM · yubikey, gnupg (gpg22), Bug Report
werner changed the status of T5487: GnuPG 2.2.28 not working with Yubikey NEO from Open to Testing.

Fix will eventually go into 2.2.29. If there is enough public demand we will do a new Windows installer earlier.

Jun 14 2021, 11:39 AM · yubikey, gnupg (gpg22), Bug Report

Jun 11 2021

gniibe added a comment to T5483: Yubikey OpenPGP app.

For Reset Code (00D3), setting it to '' (null, to reset the DO) doesn't work, but it raises 6a80.
Once it sets by something, only factory-reset can remove the value.

Jun 11 2021, 6:41 AM · yubikey
gniibe added a project to T5483: Yubikey OpenPGP app: yubikey.

While scd/app-openpgp.c assumes access of 006E composite data object to get its children objects like AID (004F), Card Capabilities (0047), etc., yubikey raises 6e82 error for the DO.

Jun 11 2021, 5:56 AM · yubikey

Jun 9 2021

gniibe renamed T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1) from Yubikey 5 doesn't work after updating to GnuPG 2.3.1 on macOS Big Sur 11.2.3 to Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).
Jun 9 2021, 2:18 AM · gnupg (gpg23), yubikey
gniibe added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

For the Data Object of serial number, what I read is this code: https://github.com/Yubico/yubikey-manager

Jun 9 2021, 1:53 AM · gnupg (gpg23), yubikey

Jun 8 2021

werner added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

FWIW: Actually the old code assumed that the s/n is at least 4 bytes. IIRC, I once checked the source of the Yubico tools to get this info.

Jun 8 2021, 8:30 AM · gnupg (gpg23), yubikey
gniibe added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

The device with serial number 10000003, it is represented as three bytes: 00989683

Jun 8 2021, 3:40 AM · gnupg (gpg23), yubikey

Jun 7 2021

gniibe edited projects for T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1), added: gnupg (gpg23); removed gnupg, MacOS.

In 2.3, the logic to identify Yubikey has been changed (to support PIV application).

Jun 7 2021, 5:28 AM · gnupg (gpg23), yubikey
gniibe added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

In your log, it says:

usb_claim_interface failed: -3
Jun 7 2021, 4:46 AM · gnupg (gpg23), yubikey
gniibe added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

Sorry, I was wrong.

Jun 7 2021, 4:43 AM · gnupg (gpg23), yubikey

Jun 4 2021

werner added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

I need to see how we can pass the check permission notice up to gpg. This is a too common problem and thus serves some special treatment.

Jun 4 2021, 12:22 PM · gnupg (gpg23), yubikey
Suertzz added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

GPG Version :

Jun 4 2021, 11:58 AM · gnupg (gpg23), yubikey
Suertzz added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

I see your situation

Could you please help me to analyze what's going on?
Please add following lines to your scdaemon.conf to see CCID driver's debug output:

debug-ccid-driver
verbose
verbose
verbose

And share the debug output.

Jun 4 2021, 2:08 AM · gnupg (gpg23), yubikey
gniibe added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

Ah, I think that your problem was fixed in rG53bdc6288f9b: scd: Recover the partial match for PORTSTR for PC/SC. (to be 2.3.2).

Jun 4 2021, 2:02 AM · gnupg (gpg23), yubikey
gniibe triaged T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1) as High priority.
Jun 4 2021, 1:58 AM · gnupg (gpg23), yubikey
gniibe claimed T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).
Jun 4 2021, 1:57 AM · gnupg (gpg23), yubikey
gniibe reopened T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1) as "Open".

I see your situation

Jun 4 2021, 1:57 AM · gnupg (gpg23), yubikey
Suertzz added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

If possible, please let us know how you configure the permission to access CCID device with 2.2 (and with 2.3)?

Jun 4 2021, 1:40 AM · gnupg (gpg23), yubikey
gniibe added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

If possible, please let us know how you configure the permission to access CCID device with 2.2 (and with 2.3)?

Jun 4 2021, 1:32 AM · gnupg (gpg23), yubikey

Jun 3 2021

Suertzz added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

Please excuse my late reply. I was busy with other things over the last few weeks.

Yes, putting disable-ccid into ~/.gnupg/scdaemon.conf works for me with GnuPG 2.3.1 under macOS Catalina (10.15).

I still don't understand what the problem is/was, so I cannot judge whether it's better to recommend this manual configuration for Mac users or to disable CCID by default on macOS.

Jun 3 2021, 11:20 PM · MacOS, yubikey, Bug Report
KasparEtter added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

Please excuse my late reply. I was busy with other things over the last few weeks.

Jun 3 2021, 9:58 AM · MacOS, yubikey, Bug Report

Jun 1 2021

Alan added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

So, has this issue been solved?

Jun 1 2021, 8:40 AM · MacOS, yubikey, Bug Report

May 28 2021

gniibe edited projects for T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations, added: yubikey; removed MacOS.
May 28 2021, 7:19 AM · gnupg24, yubikey, Bug Report

May 19 2021

werner added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

Please read also the report T5442 which is basically the same.

May 19 2021, 9:25 PM · MacOS, yubikey, Bug Report
werner added a comment to T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).

Thanks for the well written report. We had another already, and thus I merged it into T5415.

May 19 2021, 9:24 PM · gnupg (gpg23), yubikey
werner merged T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1) into T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.
May 19 2021, 9:23 PM · MacOS, yubikey, Bug Report
werner merged task T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1) into T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.
May 19 2021, 9:23 PM · gnupg (gpg23), yubikey
Suertzz created T5442: Serial number detection of Yubikey 5 (Yubikey 5 doesn't work after updating to GnuPG 2.3.1).
May 19 2021, 9:04 PM · gnupg (gpg23), yubikey

May 10 2021

werner reopened T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7 as "Open".

(I disabled this boor and restored the state)

May 10 2021, 6:41 PM · MacOS, yubikey, Bug Report
gillcovid19 closed T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7 as Resolved.
May 10 2021, 12:41 PM · MacOS, yubikey, Bug Report

May 7 2021

colemickens added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

Technical commentary on smartcard operation and/or Windows is going to be over my head, so I can't help (just in case you're looking for anything from me). But always happy to drive-test another build. (I've still had no issues, personally, with the build above.) I'll assume you don't need me unless you link another binary build to test or tag me. Thanks again, all.

May 7 2021, 7:22 AM · yubikey, scd, gnupg (gpg23), Bug Report
gniibe added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

The problem is accesses to reader_table by
(1) scanning reader(s) to open new one
(2) closing reader

May 7 2021, 6:59 AM · yubikey, scd, gnupg (gpg23), Bug Report
gniibe added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

I'm testing D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname, but I'm not sure about the impact on Windows.

May 7 2021, 6:54 AM · yubikey, scd, gnupg (gpg23), Bug Report
gniibe reopened T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe) as "Open".

The commit rGbb8e3996e44f: scd: Fix problem with reader list becoming empty. removed READER_TABLE_LOCK holding between apdu_dev_list_start and apdu_dev_list_finish, that opens possible stale resource access for CCID driver: reader_table[slot].ccid.handle

May 7 2021, 6:34 AM · yubikey, scd, gnupg (gpg23), Bug Report

May 6 2021

werner added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

That would required that we also add an option --enable-ccid-driver - better tell the macOS folks to put diable-ccid-driver into /etc/gnupg/scdaemon.conf

May 6 2021, 9:06 AM · MacOS, yubikey, Bug Report
gniibe added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

Or... we could add --disable-ccid-driver as default for macOS.

May 6 2021, 3:56 AM · MacOS, yubikey, Bug Report
gniibe claimed T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.
May 6 2021, 3:55 AM · MacOS, yubikey, Bug Report
gniibe added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

If it is built with LIBUSB enabled, please try adding the following to your scdaemon.conf:

disable-ccid
May 6 2021, 3:54 AM · MacOS, yubikey, Bug Report

May 5 2021

werner closed T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe) as Resolved.

Thanks for testing. I hope to get 2.3.2 out in two weeks.

May 5 2021, 8:13 AM · yubikey, scd, gnupg (gpg23), Bug Report

May 4 2021

colemickens added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

After upgrade:

May 4 2021, 8:08 PM · yubikey, scd, gnupg (gpg23), Bug Report

May 3 2021

werner added projects to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe): gnupg (gpg23), scd, yubikey.

Meanwhile we did some more tests on Windows and so you many want to try our betas at

May 3 2021, 2:00 PM · yubikey, scd, gnupg (gpg23), Bug Report

Apr 30 2021

KasparEtter added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

Also let me know if there are any daemons I have to kill/restart when switching between GnuPG versions by changing the $PATH. Whenever I have problems with my YubiKey, I run gpgconf --kill gpg-agent, which I also executed when I switched from version 2.2.27 back to 2.3.1 but I have no idea whether this is required or sufficient.

Apr 30 2021, 11:03 AM · MacOS, yubikey, Bug Report
KasparEtter added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.
$ gpg --version
gpg (GnuPG) 2.3.1
libgcrypt 1.9.3
$ gpg --debug ipc --card-status
gpg: reading options from '/Users/user/.gnupg/gpg.conf'
gpg: reading options from '[cmdline]'
gpg: enabled debug flags: ipc
gpg: DBG: chan_3 <- OK Pleased to meet you, process 15218
gpg: DBG: connection to the gpg-agent established
gpg: DBG: chan_3 -> RESET
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION ttyname=/dev/ttys007
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION ttytype=xterm-256color
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION lc-ctype=en_US.UTF-8
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION lc-messages=en_US.UTF-8
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> GETINFO version
gpg: DBG: chan_3 <- D 2.3.1
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION allow-pinentry-notify
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> OPTION agent-awareness=2.1.0
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> SCD GETINFO version
gpg: DBG: chan_3 <- D 2.3.1
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> SCD SERIALNO
gpg: DBG: chan_3 <- ERR 100696144 Operation not supported by device <SCD>
gpg: selecting card failed: Operation not supported by device
gpg: OpenPGP card not available: Operation not supported by device
gpg: secmem usage: 0/32768 bytes in 0 blocks
Apr 30 2021, 10:58 AM · MacOS, yubikey, Bug Report
werner added a project to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7: MacOS.

Run gpg --debug ipc --card-status to quickly see the communication with the scdaemon.

Apr 30 2021, 10:47 AM · MacOS, yubikey, Bug Report
KasparEtter created T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.
Apr 30 2021, 9:27 AM · MacOS, yubikey, Bug Report

Apr 15 2021

gniibe closed T5100: OpenPGP app overwrites Yubikey serial number as Resolved.
Apr 15 2021, 4:42 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Apr 9 2021

werner added projects to T4823: Test Yubikey's support for ed25519: yubikey, gnupg (gpg23).
Apr 9 2021, 8:30 PM · gnupg24, gnupg (gpg23), yubikey

Jan 8 2021

werner closed T5167: GnuPG 2.25 still have problems related to Yubikey NEO. as Resolved.
Jan 8 2021, 9:58 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Jan 5 2021

werner triaged T4992: ssh Yubikey not recognized, but Yubikey works with GPG well as Normal priority.
Jan 5 2021, 9:35 AM · ssh, yubikey, Bug Report, gpg4win

Dec 23 2020

gbschenkel added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Already have set another, thanks gnibe! See ya!

Dec 23 2020, 2:27 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Please change your passphrase for your card, BTW.

Dec 23 2020, 1:31 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe changed the status of T5167: GnuPG 2.25 still have problems related to Yubikey NEO. from Open to Testing.
Dec 23 2020, 1:30 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Good. The error recovery worked well.

Dec 23 2020, 1:30 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Dec 22 2020

gbschenkel added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..
$ gpg --card-status
$ gpgconf --kill scdaemon
$ git fetch << (Used my PIN, I have reverted to my previous code other day, is not anymore 123456)

Dec 22 2020, 5:43 PM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Dec 21 2020

gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Thank you for your testing.
May I ask more test, please?

Dec 21 2020, 1:31 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Dec 20 2020

gbschenkel added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Hi, I have applied both patch and appears Yubikey is now working correct. I have uploaded the log here.

Dec 20 2020, 2:19 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Dec 16 2020

gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Nice, I gonna apply the patch and see if resolves for me!

Dec 16 2020, 3:55 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gbschenkel added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Nice, I gonna apply the patch and see if resolves for me!

Dec 16 2020, 3:25 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Dec 10 2020

gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

With my Yubikey NEO, when I use OTP (touching the button to generate OTP output as key input), I observed "card eject" event:

2020-12-10 11:23:05 scdaemon[7254] DBG: ccid-driver: CCID: interrupt callback 0 (2)
2020-12-10 11:23:05 scdaemon[7254] DBG: ccid-driver: CCID: NotifySlotChange: 02
2020-12-10 11:23:05 scdaemon[7254] DBG: ccid-driver: CCID: card removed
2020-12-10 11:23:05 scdaemon[7254] DBG: enter: apdu_get_status: slot=0 hang=0
2020-12-10 11:23:05 scdaemon[7254] DBG: leave: apdu_get_status => sw=0x1000c status=0
2020-12-10 11:23:05 scdaemon[7254] DBG: Removal of a card: 0
Dec 10 2020, 3:46 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Dec 9 2020

gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

I checked the development log for the addition of:

libusb_clear_halt (handle->idev, handle->ep_intr);
Dec 9 2020, 4:35 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

I have another yubikey neo but its clean. Can it help it?

Dec 9 2020, 1:30 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gbschenkel added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

I have another yubikey neo but its clean. Can it help it?

Dec 9 2020, 12:57 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Changing modes will I lose/change my OTP and FIDO codes?

Dec 9 2020, 12:38 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Dec 8 2020

gbschenkel added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Changing modes will I lose/change my OTP and FIDO codes?

Dec 8 2020, 11:44 PM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe renamed T5167: GnuPG 2.25 still have problems related to Yubikey NEO. from GnuPG 2.25 still have problems related to Yubikey. to GnuPG 2.25 still have problems related to Yubikey NEO..
Dec 8 2020, 12:01 PM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe triaged T5167: GnuPG 2.25 still have problems related to Yubikey NEO. as High priority.
Dec 8 2020, 12:00 PM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Following device (a bit older than yours, I guess) works well:

DBG: ccid-driver: idVendor: 1050  idProduct: 0112  bcdDevice: 0334

When I configure it to OTP+FIDO+CCID, it also works for me, it is:

DBG: ccid-driver: idVendor: 1050  idProduct: 0116  bcdDevice: 0334
Dec 8 2020, 11:58 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Thanks a lot.
Let me explain the situation.

Dec 8 2020, 2:33 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Dec 7 2020

gbschenkel added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Hi, I changed the PIN, killed the gpg-agent and scdaemon, edited the scdaemon.conf to include your instruction, after, I run the following commands:

Dec 7 2020, 3:10 PM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Thank you for the information.
In the log, the driver detects removal of card wrongly.
That's the cause of this problem.

Dec 7 2020, 5:38 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gbschenkel added a comment to T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Please show us the output of gpg --card-status, and your configuration if you have something special. Are you using Yubikey also for gpg's signing, or is it only for SSH?

Dec 7 2020, 5:12 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe claimed T5167: GnuPG 2.25 still have problems related to Yubikey NEO..

Please show us the output of gpg --card-status, and your configuration if you have something special. Are you using Yubikey also for gpg's signing, or is it only for SSH?

Dec 7 2020, 2:44 AM · gnupg (gpg22), yubikey, ssh, scd, Bug Report
gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

We need another patch, because there are two places for gpg --card-edit and gpg-card to check OpenPGPcard's version number if it's >= 2 or not.

Dec 7 2020, 2:01 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Dec 6 2020

werner added projects to T5167: GnuPG 2.25 still have problems related to Yubikey NEO.: scd, ssh, yubikey, gnupg (gpg22).

There is no caching for smardcard PINs. Once a key (or group of keys) on a hard has been used (i.e. PIN entered). that key can be used as long as the card has not been reset or powered-down. No rule without exception: Some cards may require that a PIN entry is required for each crypto operation. For example the OpenPGP card (which is implemented on a Yubikey) does this for the signing key but not for the authentication (ssh) key. To disable this for the signing key you use the "forcesig" command of gpg --card-edit.

Dec 6 2020, 5:00 PM · gnupg (gpg22), yubikey, ssh, scd, Bug Report

Nov 26 2020

werner added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

Sorry, I realized this myself this morning and did couple of fixes. rG7113263a00d8 does this all however I forgot to mention the bug number.

Nov 26 2020, 4:55 PM · Restricted Project, gnupg, scd, yubikey, kleopatra
ikloecker added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

Argh. The following patch replaces the previous patch. It fixes the calculation of the display serial number.

Nov 26 2020, 3:21 PM · Restricted Project, gnupg, scd, yubikey, kleopatra
ikloecker added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

I think the calculation of the OpenPGP s/n is not correct. As you write, "Yubico seems to use the decimalized version of their S/N as the OpenPGP card S/N." This matches my observation for my Yubikey:
s/n printed on Yubikey: 9074582
Yubikey s/n (with our prefix): FF020001008A7796
OpenPGP AID: D2760001240102010006090745820000

Nov 26 2020, 2:45 PM · Restricted Project, gnupg, scd, yubikey, kleopatra

Nov 25 2020

gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

Great. Please apply the patch.

Nov 25 2020, 1:42 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Nov 24 2020

werner added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

Okay, I now got such a patch:

Nov 24 2020, 6:04 PM · Restricted Project, gnupg, scd, yubikey, kleopatra
werner added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

I found a good enough solution: I changed the code to compute the OpenPGP s/n from the Yubikey s/n right after a Yubikey has been detected. Later, and if OpenPGP enabled on the YK, the S/N is already there but we use the S/N from the 0x4f DO. That is needed because we can't compute the OpenPGP version number ahead and use 0.0 in the S/N.

Nov 24 2020, 4:24 PM · Restricted Project, gnupg, scd, yubikey, kleopatra