Page MenuHome GnuPG
Feed Advanced Search

Dec 9 2020

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 changed the status of T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card from Open to Testing.

Backported.

Dec 7 2020, 2:16 AM · Restricted Project, gnupg, 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

Dec 3 2020

gniibe triaged T5161: scd: For NetKey cards KEYINFO with keygrip fails as Normal priority.
Dec 3 2020, 8:26 AM · Restricted Project, scd
gniibe claimed T5161: scd: For NetKey cards KEYINFO with keygrip fails.

I think that T5150 was also not fixed completely.

Dec 3 2020, 8:26 AM · Restricted Project, scd
gniibe added a comment to T5161: scd: For NetKey cards KEYINFO with keygrip fails.

I found a bug which resulted "Not Found <SCD>" when "SCD KEYINFO" is used with "--data" or "--".
It is fixed in rG54b88ae46062: scd: Fix KEYINFO command with --data option..

Dec 3 2020, 7:44 AM · Restricted Project, scd
gniibe edited projects for T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card, added: gnupg, backport; removed gnupg (gpg22).

Fixed in master. I will backport to 2.2.

Dec 3 2020, 7:08 AM · Restricted Project, gnupg, scd, Bug Report
gniibe added a comment to T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.

I was wrong. Patch is being updated...

Dec 3 2020, 6:33 AM · Restricted Project, gnupg, scd, Bug Report

Dec 2 2020

gniibe added a comment to T5161: scd: For NetKey cards KEYINFO with keygrip fails.

I can't see how it occurs. "SCE KEYINFO" and "SCD READKEY" with keygrip both goes exactly same code path (the difference is only the "action" argument).

Dec 2 2020, 9:13 AM · Restricted Project, scd
gniibe added a comment to T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.

You better wipe ecc_d_padded or use xtrymalloc_secure.

Dec 2 2020, 9:07 AM · Restricted Project, gnupg, scd, Bug Report
werner added a comment to T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.

You better wipe ecc_d_padded or use xtrymalloc_secure.

Dec 2 2020, 8:45 AM · Restricted Project, gnupg, scd, Bug Report
gniibe triaged T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card as High priority.
Dec 2 2020, 4:07 AM · Restricted Project, gnupg, scd, Bug Report
gniibe added a comment to T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.

Here is a patch:

Dec 2 2020, 4:06 AM · Restricted Project, gnupg, scd, Bug Report
gniibe claimed T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.
Dec 2 2020, 3:32 AM · Restricted Project, gnupg, scd, Bug Report
gniibe added a comment to T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card.

In future, please try to minimize your log. Your log actually includes information of the session of keytocard before setting key attributes correctly.

Dec 2 2020, 3:31 AM · Restricted Project, gnupg, scd, Bug Report

Dec 1 2020

werner added projects to T5163: Cannot import NIST-P521 key to OpenPGP v3.3 smart card: Bug Report, scd, gnupg (gpg22).
Dec 1 2020, 8:49 PM · Restricted Project, gnupg, scd, Bug Report

Nov 30 2020

ikloecker created T5161: scd: For NetKey cards KEYINFO with keygrip fails.
Nov 30 2020, 10:57 AM · Restricted Project, scd
ikloecker added a comment to T5150: scd: For NetKey cards READKEY with keygrip fails.

Seems to work now. I'm not sure whether I should close this issue because it's marked for backport.

Nov 30 2020, 10:19 AM · backport, gnupg (gpg23), scd
ikloecker closed T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards as Resolved.

Works now. Thanks.

Nov 30 2020, 10:05 AM · Restricted Project, gnupg (gpg23), scd

Nov 27 2020

werner added a comment to T5150: scd: For NetKey cards READKEY with keygrip fails.

Regarding a backport I think that I will eventually backport all app-*c to stable by source copying them. We have a quite stable internal API and thus it is easier to keep at least the card specific code in sync. I did some local work in this directory some time ago.

Nov 27 2020, 5:54 PM · backport, gnupg (gpg23), scd
werner added a project to T4614: GPG: Cancel on pinpad hangs decryption process for 20 seconds: backport.
Nov 27 2020, 7:58 AM · backport, Restricted Project, scd, gnupg
gniibe changed the status of T4614: GPG: Cancel on pinpad hangs decryption process for 20 seconds from Open to Testing.
Nov 27 2020, 7:21 AM · backport, Restricted Project, scd, gnupg
gniibe added a comment to T4614: GPG: Cancel on pinpad hangs decryption process for 20 seconds.

Finally, with the physical device, I figure out what's going on.
The error handling in bulk_in in ccid-driver.c is not good for pinpad input.
It doesn't return an error when it is cancelled or timeout (for the user interaction).
And it calls libusb_clear_hald which causes screwed up situation.

Nov 27 2020, 7:17 AM · backport, Restricted Project, scd, gnupg

Nov 26 2020

werner reopened T4004: Curve25519 for Zeitcontrol card as "Open".
Nov 26 2020, 5:08 PM · Feature Request, scd
werner added a comment to T4004: Curve25519 for Zeitcontrol card.

You are right, the new 3.4 cards support brainpool curves in addition to the nist curves.

Nov 26 2020, 5:08 PM · Feature Request, scd
werner created T5156: Automatically dismiss the popup 'please insert card with S/N...'.
Nov 26 2020, 5:04 PM · scd, gnupg
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
nitroalex added a comment to T4004: Curve25519 for Zeitcontrol card.

If you mean OpenPGP Card v3 standard, no it did not support cv25519 ed25519, but some other curves up until v3.4. So if there is a specific specification bringing this feature, can you might refer to the specific version? Otherwise, I think this task is still valid.
I remember the problem being the card manufacturers that are not interesting in cv25519 (yet).

Nov 26 2020, 10:06 AM · Feature Request, scd
werner added a project to T5150: scd: For NetKey cards READKEY with keygrip fails: backport.
Nov 26 2020, 7:55 AM · backport, gnupg (gpg23), scd
gniibe closed T4004: Curve25519 for Zeitcontrol card as Resolved.

Support was added in version 3 card.

Nov 26 2020, 7:17 AM · Feature Request, scd
gniibe added a comment to T5150: scd: For NetKey cards READKEY with keygrip fails.

Applied and push the change above in rG920154370834: scd,nks: Fix caching keygrip..

Nov 26 2020, 1:38 AM · backport, gnupg (gpg23), scd

Nov 25 2020

gniibe triaged T5150: scd: For NetKey cards READKEY with keygrip fails as Normal priority.
Nov 25 2020, 3:48 AM · backport, gnupg (gpg23), scd
gniibe added a comment to T5150: scd: For NetKey cards READKEY with keygrip fails.

For the first issue, I pushed the change in rGc3a20c88fb30: scd: Fix an error return for READKEY..

Nov 25 2020, 3:48 AM · backport, gnupg (gpg23), scd
gniibe changed the status of T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards from Open to Testing.
Nov 25 2020, 2:37 AM · Restricted Project, gnupg (gpg23), scd
gniibe claimed T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards.

Fixed in rG006944b856ee: scd,nks: Fix SEGV for learn for older card..

Nov 25 2020, 2:37 AM · Restricted Project, gnupg (gpg23), scd
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
turkja added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

Stable now and works as expected. Thank you!

Nov 24 2020, 1:27 AM · Restricted Project, gnupg (gpg22), scd, Bug Report

Nov 23 2020

werner closed T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2) as Resolved.
Nov 23 2020, 7:59 PM · Restricted Project, gnupg (gpg22), scd, Bug Report
werner moved T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2) from Backlog to Ready for release on the gnupg (gpg22) board.
Nov 23 2020, 1:45 PM · Restricted Project, gnupg (gpg22), scd, Bug Report
werner closed T5115: OpenPGP card factory-reset and Kleopatra as Resolved.

This was fixed in 2.2.24 with commit rG7f765a98fd662

Nov 23 2020, 11:56 AM · kleopatra, gnupg (gpg22), scd
ikloecker added a parent task for T5100: OpenPGP app overwrites Yubikey serial number: T5130: Kleopatra: Generating OpenPGP keys on Yubikey (with PIV enabled) fails with "General error".
Nov 23 2020, 11:12 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Nov 20 2020

werner added a project to T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards: gnupg (gpg23).
Nov 20 2020, 6:31 PM · Restricted Project, gnupg (gpg23), scd
werner added a project to T5150: scd: For NetKey cards READKEY with keygrip fails: gnupg (gpg23).
Nov 20 2020, 6:31 PM · backport, gnupg (gpg23), scd
ikloecker created T5150: scd: For NetKey cards READKEY with keygrip fails.
Nov 20 2020, 3:36 PM · backport, gnupg (gpg23), scd
ikloecker added a comment to T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards.

The above workaround may not be necessary because another code path sets the algorithm string as seen in

$ gpg-connect-agent "SCD READKEY --info -- NKS-NKS3.4531" /bye
S KEYPAIRINFO 39400430E38BB96F105B740A7119FE113578B59D NKS-NKS3.4531 - - rsa2048
Nov 20 2020, 11:39 AM · Restricted Project, gnupg (gpg23), scd
ikloecker added a comment to T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards.

The following patch fixes the crash:

diff --git a/scd/app-nks.c b/scd/app-nks.c
index 47be7cd85..4d925dccd 100644
--- a/scd/app-nks.c
+++ b/scd/app-nks.c
@@ -871,7 +871,7 @@ do_learn_status_core (app_t app, ctrl_t ctrl, unsigned int flags,
                                 id_buf, strlen (id_buf),
                                 usagebuf, strlen (usagebuf),
                                 "-", (size_t)1,
-                                algostr, strlen (algostr),
+                                algostr, algostr ? strlen (algostr) : (size_t)0,
                                 NULL, (size_t)0);
             }
           xfree (algostr);
Nov 20 2020, 11:21 AM · Restricted Project, gnupg (gpg23), scd
gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

How about distinguishing CARDNO and application specific SERIALNO?

Nov 20 2020, 8:38 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Nov 19 2020

gniibe reopened T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2) as "Testing".
Nov 19 2020, 5:58 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 again for your report.

Nov 19 2020, 5:57 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).

I'm still having problems with 2.2.24. Now the card removal is detected correctly, but the initialization fails.

Nov 19 2020, 3:48 AM · Restricted Project, gnupg (gpg22), scd, Bug Report

Nov 18 2020

ikloecker created T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards.
Nov 18 2020, 12:07 PM · Restricted Project, gnupg (gpg23), scd
gniibe closed T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2) as Resolved.
Nov 18 2020, 7:03 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe closed T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader, a subtask of T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2), as Resolved.
Nov 18 2020, 7:02 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe closed T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader as Resolved.
Nov 18 2020, 7:02 AM · gnupg (gpg22), Restricted Project, scd

Nov 17 2020

werner changed the status of T4616: Smartcard: Card reset required - It should be automatic from Open to Testing.
Nov 17 2020, 11:32 AM · gnupg, scd

Nov 12 2020

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

BTW, the idea is to fade out support for gpg --card-status and --card-edit. Thus no new features there. New features shall only go into gpg-card.

Nov 12 2020, 9:42 AM · Restricted Project, gnupg, scd, yubikey, kleopatra
ikloecker added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

Fixing --card-status is definitely a good idea. gpg-card shows almost the same information as gpg --card-status except that it shows the correct "Version" and "Serial number". It would probably make sense to unify the code of --card-status and gpg-card's list command.

Nov 12 2020, 9:39 AM · Restricted Project, gnupg, scd, yubikey, kleopatra
gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

Let me describe current situation.

Nov 12 2020, 12:56 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Nov 11 2020

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

I just noticed that gpg --card-status now prints a bogus OpenPGP version number for my Yubikey. And it prints an empty serial number.

# gpg --card-status
Reader ...........: 1050:0407:X:0
Application ID ...: FF020001008A7796
Application type .: OpenPGP
Version ..........: 77.96
Manufacturer .....: Yubico
Serial number ....:
Nov 11 2020, 10:07 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Nov 10 2020

gniibe changed the status of T4998: scdaemon: PC/SC "No such device" without reader-port from Open to Testing.
Nov 10 2020, 4:00 AM · Restricted Project, scd, Bug Report
gniibe changed the status of T4998: scdaemon: PC/SC "No such device" without reader-port, a subtask of T3300: scd: Support multiple readers by PC/SC driver, from Open to Testing.
Nov 10 2020, 4:00 AM · Restricted Project, gnupg (gpg23), scd

Nov 9 2020

werner removed a project from T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader: backport.
Nov 9 2020, 1:40 PM · gnupg (gpg22), Restricted Project, scd
werner added a project to T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader: backport.
Nov 9 2020, 12:31 PM · gnupg (gpg22), Restricted Project, scd

Nov 5 2020

gniibe added a comment to T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader.

For SPR532, we need following.

Nov 5 2020, 8:47 AM · gnupg (gpg22), Restricted Project, scd
gniibe edited projects for T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader, added: Restricted Project, gnupg (gpg22); removed gnupg.
Nov 5 2020, 8:24 AM · gnupg (gpg22), Restricted Project, scd
gniibe changed the status of T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader, a subtask of T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2), from Open to Testing.
Nov 5 2020, 8:24 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe changed the status of T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader from Open to Testing.
Nov 5 2020, 8:24 AM · gnupg (gpg22), Restricted Project, scd
gniibe added a parent task for T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader: T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).
Nov 5 2020, 8:22 AM · gnupg (gpg22), Restricted Project, scd
gniibe added a subtask for T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2): T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader.
Nov 5 2020, 8:22 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe created T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader.
Nov 5 2020, 12:43 AM · gnupg (gpg22), Restricted Project, scd

Nov 2 2020

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

We should find a way to figure out the OpenPGP S/N even if OpenPGP is disabled. I'll ask Yubico.

Nov 2 2020, 9:42 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Oct 29 2020

werner added a comment to T5115: OpenPGP card factory-reset and Kleopatra.

I forgot that we have LOCK and UNLOCK commands in scdaemon. This was implemented around 2005 but there are no more users in gpg meanwhile.

Oct 29 2020, 11:50 AM · kleopatra, gnupg (gpg22), scd
werner created T5115: OpenPGP card factory-reset and Kleopatra.
Oct 29 2020, 11:47 AM · kleopatra, gnupg (gpg22), scd

Oct 28 2020

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

I have tested this with Kleopatra. The good news is that SCD GETATTR $DISPSERIALNO now works for the piv app even if the openpgp app is enabled.

Oct 28 2020, 10:24 AM · Restricted Project, gnupg, scd, yubikey, kleopatra
gniibe triaged T5100: OpenPGP app overwrites Yubikey serial number as Normal priority.
Oct 28 2020, 2:45 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Oct 27 2020

gniibe changed the status of T5100: OpenPGP app overwrites Yubikey serial number from Open to Testing.
Oct 27 2020, 6:43 AM · Restricted Project, gnupg, scd, yubikey, kleopatra
gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

SCD commands:

  • DEVINFO
    • returns app apecific serialno
  • SERIALNO
    • returns app specific serialno
  • LEARN
    • returns canonical serialno
Oct 27 2020, 6:41 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Oct 26 2020

gniibe closed T5102: READCERT immediately after WRITECERT fails as Resolved.

Pushed the change.

Oct 26 2020, 6:32 AM · kleopatra, scd

Oct 21 2020

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

I created this patch D509: Yubikey supports two (or more) apps, serial number problem.

Oct 21 2020, 7:53 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Oct 19 2020

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

But changing just the displayed S/N should not disturb anything.

Oct 19 2020, 9:51 AM · Restricted Project, gnupg, scd, yubikey, kleopatra
gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

No, the above patch makes OpenPGP app stop working.

Oct 19 2020, 9:34 AM · Restricted Project, gnupg, scd, yubikey, kleopatra
gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

(I don't know well about Yubikey specific serial number.)

Oct 19 2020, 9:27 AM · Restricted Project, gnupg, scd, yubikey, kleopatra
gniibe claimed T5100: OpenPGP app overwrites Yubikey serial number.
Oct 19 2020, 6:41 AM · Restricted Project, gnupg, scd, yubikey, kleopatra
gniibe claimed T5102: READCERT immediately after WRITECERT fails.
Oct 19 2020, 6:37 AM · kleopatra, scd

Oct 13 2020

ikloecker added a comment to T5102: READCERT immediately after WRITECERT fails.

This doesn't help. I think that's because after

flush_cached_data (app, dobj->tag);

do_writecert does

do_readkey (...)

which fills the cache again.

Oct 13 2020, 12:19 PM · kleopatra, scd