Page MenuHome GnuPG
Feed Advanced Search

Apr 21 2022

gniibe claimed T5935: scd: SSH emulation of gpg-agent doesn't work well with sntrup761x25519-sha512@openssh.com.
Apr 21 2022, 6:41 AM · workaround, gnupg (gpg23), ssh, Bug Report, scd

Mar 29 2022

gniibe added projects to T5029: server socket/pipe handling in GnuPG: Restricted Project, Windows.
Mar 29 2022, 2:59 AM · Windows, scd, gnupg (gpg23)
gniibe added a project to T5029: server socket/pipe handling in GnuPG: scd.
Mar 29 2022, 2:59 AM · Windows, scd, gnupg (gpg23)

Mar 28 2022

gniibe closed T5428: PC/SC detecting removal of card as Resolved.

When we will find reproducible test case, please reopen.

Mar 28 2022, 3:51 AM · Info Needed, Windows, scd, Bug Report

Mar 14 2022

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

And updated scd_validate2.py:

Mar 14 2022, 10:57 AM · gpgagent, Feature Request, scd
gniibe added a comment to T5862: authentication with USB token.

Wrote a pam module which interacts a user for auth:

Mar 14 2022, 10:55 AM · gpgagent, Feature Request, scd

Mar 10 2022

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

I write a prototype in Python using pyassuan:

Mar 10 2022, 3:35 AM · gpgagent, Feature Request, scd

Mar 7 2022

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

More things to be considered:

  • How to connect scdaemon
  • How to invoke scdaemon
Mar 7 2022, 1:14 AM · gpgagent, Feature Request, scd

Mar 4 2022

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

BTW, there are various use cases for authentication(s), it is better to focus on the part of device and crypto (USB Token and scdaemon).

Mar 4 2022, 6:05 AM · gpgagent, Feature Request, scd
gniibe added a comment to T5862: authentication with USB token.

Here is an experimental shell script for testing:

Mar 4 2022, 5:46 AM · gpgagent, Feature Request, scd

Mar 1 2022

gniibe added projects to T5862: authentication with USB token: scd, Feature Request.

It may be simpler if we can enhance scdaemon to have an option for PKAUTH, say, --challenge-response, so that it generates a challenge and verify signature internally.

Mar 1 2022, 8:57 AM · gpgagent, Feature Request, scd

Feb 23 2022

werner closed T5838: gpg card not getting detected as Resolved.
Feb 23 2022, 4:07 PM · Not A Bug, scd, gnupg, RHEL

Feb 17 2022

werner added projects to T5838: gpg card not getting detected: RHEL, gnupg, scd.
Feb 17 2022, 1:21 PM · Not A Bug, scd, gnupg, RHEL
irl added a comment to T5837: gpg-card: Authenticate to PIV applet with non-3DES card management key.

Setting the management key has been implemented only for Yubikeys. So for Gemalto this won't work.

Feb 17 2022, 11:20 AM · gnupg24, scd, Feature Request
werner claimed T5837: gpg-card: Authenticate to PIV applet with non-3DES card management key.
Feb 17 2022, 10:49 AM · gnupg24, scd, Feature Request
gniibe added a project to T5831: Backport (f808012a) scd: Use lock_slot for apdu_send_direct. to GnuPG 2.2: Restricted Project.

Thank you for your suggestion.

Feb 17 2022, 6:08 AM · gnupg (gpg22), Bug Report, scd
gniibe claimed T5831: Backport (f808012a) scd: Use lock_slot for apdu_send_direct. to GnuPG 2.2.
Feb 17 2022, 6:01 AM · gnupg (gpg22), Bug Report, scd

Feb 14 2022

ZenithalHourlyRate created T5831: Backport (f808012a) scd: Use lock_slot for apdu_send_direct. to GnuPG 2.2.
Feb 14 2022, 1:10 PM · gnupg (gpg22), Bug Report, scd

Jan 18 2022

werner triaged T5790: Cannot use "Retired Cert Key Mgm [1-20]” Slots on YubiKey as Normal priority.
Jan 18 2022, 7:20 AM · gnupg24, gnupg (gpg23), scd, Feature Request

Jan 4 2022

gniibe renamed T5758: scd: loop forever with reader_port, when open_pcsc_reader failed from scd: reader_port to scd: loop forever with reader_port, when open_pcsc_reader failed.
Jan 4 2022, 7:03 AM · gnupg (gpg23), scd
gniibe claimed T5758: scd: loop forever with reader_port, when open_pcsc_reader failed.
Jan 4 2022, 7:02 AM · gnupg (gpg23), scd
gniibe added a comment to T5758: scd: loop forever with reader_port, when open_pcsc_reader failed.

The problem was the error handling.
I didn't apply the patch directly, but improved the code paths.

Jan 4 2022, 7:02 AM · gnupg (gpg23), scd
gniibe triaged T5758: scd: loop forever with reader_port, when open_pcsc_reader failed as Normal priority.
Jan 4 2022, 6:44 AM · gnupg (gpg23), scd

Nov 23 2021

werner closed T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu as Resolved.
Nov 23 2021, 1:26 PM · Restricted Project, scd, ssh, Bug Report

Nov 16 2021

werner changed the status of T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu from Open to Testing.
Nov 16 2021, 5:24 PM · Restricted Project, scd, ssh, Bug Report

Nov 15 2021

gniibe added a project to T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu: Restricted Project.
Nov 15 2021, 3:53 AM · Restricted Project, scd, ssh, Bug Report
gniibe added a comment to T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu.

Adding the check on host side, I pushed the change: rGa575b0aba542: scd:openpgp: Support longer data for INTERNAL_AUTHENTICATE.

Nov 15 2021, 3:53 AM · Restricted Project, scd, ssh, Bug Report

Nov 12 2021

werner triaged T5682: ed25519 internal authenticate with openpgpcard may send long data over short apdu as High priority.
Nov 12 2021, 12:53 PM · Restricted Project, scd, ssh, Bug Report

Oct 29 2021

gniibe added projects to T5359: Kleopatra: Loop in DeviceInfoWatcher with GnuPG 2.3 on Windows: scd, Restricted Project.
Oct 29 2021, 4:19 AM · Restricted Project, scd, Restricted Project, kleopatra

Oct 28 2021

ikloecker changed the status of T5672: Kleopatra: Improve Kleopatras detection of keyservers from Open to Testing.

Kleopatra now checks both keyserver options. Previously, Kleopatra checked only one of them depending on the version of gpg (< 2.3.0 vs. >= 2.3.0). Note that the automatic lookup is only done if the keyserver option specifies an LDAP server, i.e. if it starts with "ldap".

Oct 28 2021, 2:55 PM · Restricted Project, scd, kleopatra
ikloecker moved T5672: Kleopatra: Improve Kleopatras detection of keyservers from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Oct 28 2021, 10:07 AM · Restricted Project, scd, kleopatra
ikloecker added a project to T5672: Kleopatra: Improve Kleopatras detection of keyservers: Restricted Project.
Oct 28 2021, 10:07 AM · Restricted Project, scd, kleopatra

Oct 27 2021

werner updated the task description for T5672: Kleopatra: Improve Kleopatras detection of keyservers.
Oct 27 2021, 4:21 PM · Restricted Project, scd, kleopatra

Oct 20 2021

werner lowered the priority of T5546: Kleopatra: After importing the first pubkey for a card from LDAP the keylistview is not refreshed from Normal to Low.

Lets downgrade the priority and keep it open in case we get reports from customers. The other option would be to replicate this here using our AD demo network. But that is a bit time consuming.

Oct 20 2021, 12:26 PM · scd, Info Needed, Restricted Project, kleopatra

Oct 10 2021

werner closed T5632: gpg-agent 2.3.2 conflicts with pcscd as Resolved.
Oct 10 2021, 7:04 PM · Not A Bug, yubikey, scd, gnupg (gpg23)
werner closed T5539: Key generation on OpenPGP Version 3.4 card fails as Resolved.

As long as we can't replicate this, it does not make sense to keep this bug open. Please re-open it if you run into it again in a replicatable way.

Oct 10 2021, 6:59 PM · can't replicate, OpenPGP, scd, Bug Report, gpg4win

Oct 4 2021

gniibe claimed T5632: gpg-agent 2.3.2 conflicts with pcscd.

For 2.3, when you use PC/SC, please use the disable-ccid option in your .gnupg/scdaemon.conf.

Oct 4 2021, 4:07 AM · Not A Bug, yubikey, scd, gnupg (gpg23)

Oct 1 2021

werner added projects to T5632: gpg-agent 2.3.2 conflicts with pcscd: gnupg (gpg23), scd.
Oct 1 2021, 6:15 PM · Not A Bug, yubikey, scd, gnupg (gpg23)

Sep 14 2021

werner lowered the priority of T5085: Filter APDUs in log output from Normal to Low.
Sep 14 2021, 2:00 PM · gnupg, Feature Request, scd

Aug 31 2021

werner renamed T5583: Support RSCS dedicated OpenPGP for OID. from Support RSCS dedicated OpenPGP fpr OID. to Support RSCS dedicated OpenPGP for OID..
Aug 31 2021, 5:26 PM · gnupg26, Restricted Project, scd
werner triaged T5583: Support RSCS dedicated OpenPGP for OID. as Normal priority.
Aug 31 2021, 5:26 PM · gnupg26, Restricted Project, scd

Aug 26 2021

Sanmilie added a comment to T5570: Add to detect external interference validation the card type : Securite carte à puce .

by the way when the applet is selected, I return
D2760001240103045343000000010000
this can be used to detect the manufacturer number

Aug 26 2021, 7:09 PM · Feature Request, scd
Sanmilie added a comment to T5570: Add to detect external interference validation the card type : Securite carte à puce .

Card ATR at the cool reset
Card ATR is : 3B 9C 95 81 01 50 53 43 50 2D 53 43 53 56 31 2E 30 8E
Historical Byte is 53435356312E30
CARD ATS-to-ATR is : 3B 8C 80 01 50 53 43 50 2D 53 43 53 56 31 2E 30 0A
CARD ATS is : 11 78 80 B8 02 50 53 43 50 2D 53 43 53 56 31 2E 30
Historical Byte is 53435356312E30
This can by detected for the card type.

Aug 26 2021, 6:57 PM · Feature Request, scd
werner added a project to T5570: Add to detect external interference validation the card type : Securite carte à puce : Feature Request.

Is there another way to to detect your card (I assume a Javacard) without relying on the openpgp card application vendor-id like we do it with the Yubikey? I want to avoid a possible early but expensive AID selection just to get the vendor-id.

Aug 26 2021, 6:29 PM · Feature Request, scd
Sanmilie triaged T5570: Add to detect external interference validation the card type : Securite carte à puce as Normal priority.
Aug 26 2021, 6:15 PM · Feature Request, scd

Aug 25 2021

gniibe closed T5297: SCM SPR332 smartcard reader support broken as Resolved.
Aug 25 2021, 3:33 AM · gnupg (gpg22), scd, Bug Report
gniibe closed T5425: scdaemon.conf reader-port setting broken in 2.3 as Resolved.

Fixed in 2.3.2.

Aug 25 2021, 3:30 AM · gnupg, Restricted Project, scd, Bug Report

Aug 24 2021

werner closed T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe) as Resolved.
Aug 24 2021, 7:59 PM · yubikey, scd, gnupg (gpg23), Bug Report
werner closed T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied as Resolved.
Aug 24 2021, 7:58 PM · yubikey, Bug Report, scd
werner closed T5524: scd: serialize access of ctrl->card_ctx as Resolved.
Aug 24 2021, 7:58 PM · gnupg (gpg23), Restricted Project, scd

Aug 13 2021

werner changed the edit policy for scd.
Aug 13 2021, 11:14 PM

Aug 3 2021

werner added a project to T5539: Key generation on OpenPGP Version 3.4 card fails: can't replicate.
Aug 3 2021, 11:52 AM · can't replicate, OpenPGP, scd, Bug Report, gpg4win
werner triaged T5539: Key generation on OpenPGP Version 3.4 card fails as Normal priority.
Aug 3 2021, 11:48 AM · can't replicate, OpenPGP, scd, Bug Report, gpg4win

Jul 30 2021

werner triaged T5538: gpg-agent's keytocard cmd should use a better default creation time. as Normal priority.
Jul 30 2021, 1:24 PM · gpgagent, gnupg (gpg23)

Jul 28 2021

werner closed T4791: Switch between PIV and OpenPGP app w/o reentering the PIN as Resolved.

Works for a long time now (unless we broke it again;-)

Jul 28 2021, 3:21 PM · scd, yubikey

Jul 22 2021

gniibe added projects to T5524: scd: serialize access of ctrl->card_ctx: Restricted Project, gnupg (gpg23).
Jul 22 2021, 4:38 AM · gnupg (gpg23), Restricted Project, scd
gniibe changed the status of T5524: scd: serialize access of ctrl->card_ctx from Open to Testing.
Jul 22 2021, 4:38 AM · gnupg (gpg23), Restricted Project, scd

Jul 16 2021

gniibe added a comment to T5524: scd: serialize access of ctrl->card_ctx.

This rwlock guarantees access with ctrl->card_ctx is always valid.

Jul 16 2021, 8:42 AM · gnupg (gpg23), Restricted Project, scd
gniibe created T5524: scd: serialize access of ctrl->card_ctx.
Jul 16 2021, 8:40 AM · gnupg (gpg23), Restricted Project, scd

Jul 6 2021

werner lowered the priority of T4884: PKCS #15 support in gpgsm from High to Normal.
Jul 6 2021, 6:12 PM · Feature Request, gnupg, scd, S/MIME

Jun 28 2021

Sanmilie added a revision to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied: D535: More general for large scale multi-apps card in pcsc-shared context. .
Jun 28 2021, 6:18 AM · yubikey, Bug Report, scd
Sanmilie added a task to D535: More general for large scale multi-apps card in pcsc-shared context. : T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.
Jun 28 2021, 6:18 AM · scd
Sanmilie requested review of D535: More general for large scale multi-apps card in pcsc-shared context. .
Jun 28 2021, 6:17 AM · scd

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 closed T5413: Unblock PIN by Reset Code as Resolved.
Jun 23 2021, 7:12 AM · Restricted Project, gnupg, scd

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 17 2021

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

If something more user friendly is required, it could be possible for higher layer (SCDaemon's command handling) to check verification status beforehand, and do error recovery there.

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

I don't think we should do automatic error recovery from 6982 to retry decryption/signing, inside CMD_PSO (0x2A) operation.

Jun 17 2021, 9:48 AM · yubikey, Bug Report, scd
gniibe lowered the priority of T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied from High to Normal.
Jun 17 2021, 9:44 AM · yubikey, Bug Report, scd
Sanmilie added a comment to T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied.

I have tried the case 1 with log activated
Windows switches applet for signing Adobe Acrobat doc.
This is the log from agent - Say Bad NIP but he never tries to use the nip SCDaemon have tried to decrypt only.
gpg-agent[8496]: DBG: agent_put_cache '1//'.-1 (mode 6) requested ttl=-1
gpg-agent[8496]: DBG: chan_0x000001c0 <- S SERIALNO D2760001240103045343000000010000
gpg-agent[8496]: DBG: chan_0x000001c0 <- OK
gpg-agent[8496]: DBG: chan_0x000001c0 -> KEYINFO BBD342CA5B0F978DA17F2AD9F5A1E95FF50C129E
gpg-agent[8496]: DBG: chan_0x000001c0 <- S KEYINFO BBD342CA5B0F978DA17F2AD9F5A1E95FF50C129E T D2760001240103045343000000010000 OPENPGP.2
gpg-agent[8496]: DBG: chan_0x000001c0 <- OK
gpg-agent[8496]: DBG: chan_0x000001c0 -> SETDATA 4F0E7600C2C497A06288DF49B7EA1BC723E04FAC360D6D6C4F4DC1B48DEC13A53556229CDC4562E349C9B5E71365561A941761D1D2C709A16488903AA60925A7B103DEF6B6AE46814370AE815BFBE4A30EC443904C1D63E21ABF5B0B39B8484F3CB4235AEDA04F78F14308AE3DEF52309FB745BC65E3075D19C01C789C8F58931D957D7C26BE7DCEF6B880B362251246FA4E1A2830A13AD94635CC4CE14B0F253481F38C39BA5CC748FDF03F9D936B9C8DE6BF7E49AFF4BE3A84A4E4547FADD4C9F1634416641FF804F3503CC924098F1C4CAA908FD272737312A4D5BE59C644EE1633AA248DC996EF67BA5E087DB6312BD2014BFAFD62FD08C7D45E3AFD431C
gpg-agent[8496]: DBG: chan_0x000001c0 <- OK
gpg-agent[8496]: DBG: chan_0x000001c0 -> PKDECRYPT BBD342CA5B0F978DA17F2AD9F5A1E95FF50C129E
gpg-agent[8496]: DBG: chan_0x000001c0 <- ERR 100663383 Mauvais code personnel <SCD>
gpg-agent[8496]: smartcard decryption failed: Mauvais code personnel
gpg-agent[8496]: command 'PKDECRYPT' failed: Mauvais code personnel <SCD>
gpg-agent[8496]: DBG: chan_0x00000270 -> ERR 100663383 Mauvais code personnel <SCD>

Jun 17 2021, 8:53 AM · yubikey, Bug Report, scd

Jun 16 2021

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

When a card sends 0x6982 in general rule is not really an error is a warning to say, your security environment was not correctly initialized.
This is true with almost applet. (PIV – GIDS – OPenPGP)
The instruction 0x2A to perform security operation return 0x6982 when pin is not authenticated or key is badly selected. This not decrement pin counter.

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

Possible way would be: (for newer card/token of OpenPGPcard 3.4 or later) before crypto operations, we can ask card/token if authentication state is consistent to the one of scdaemon and if not reselect AID.

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

I'd like to support your use case. Could you please tell me about: How can we distinguish normal failure of 6982 and unusual failure of other application interference which results 6982?

Jun 16 2021, 8:50 AM · yubikey, Bug Report, scd

Jun 11 2021

Sanmilie triaged T5484: SCDaemon Not reselect applet and reauthenticate when the card send Security Not Sastisfied as High priority.
Jun 11 2021, 8:02 AM · yubikey, Bug Report, scd

May 28 2021

gniibe merged task T5451: disable-ccid breaks gpg-agent caching on MacOS (gpg 2.3.1) into T5436: gpg-agent 2.3.1: PIN caching not working for decrypt operations.
May 28 2021, 3:23 AM · scd, gnupg (gpg23), MacOS, Bug Report

May 26 2021

werner added projects to T5451: disable-ccid breaks gpg-agent caching on MacOS (gpg 2.3.1): MacOS, gnupg (gpg23), scd.
May 26 2021, 5:48 PM · scd, gnupg (gpg23), MacOS, Bug Report

May 19 2021

werner added a comment to T5428: PC/SC detecting removal of card.

Funny thing is that I can't replicate it anymore with the current version (2.2.18-beta77). I tested it on two machines and things just worked. One machine had just one reader and the other had several virtual readers in addition to the scr3500. After adding --reader-port for the latter it worked as well. I don't think I had a Windows update in the meantime.

May 19 2021, 11:46 AM · Info Needed, Windows, scd, Bug Report

May 13 2021

gniibe added a comment to T5437: PC/SC change: monitoring card status changes (possibly also for new reader).

I am testing with rGccfb5e0a7dc6: scd: Use SCardStatus for pcsc_get_status. on GNU/Linux.

May 13 2021, 6:19 AM · scd
gniibe renamed T5437: PC/SC change: monitoring card status changes (possibly also for new reader) from PC/SC change monitoring card status changes (possibly also for new reader) to PC/SC change: monitoring card status changes (possibly also for new reader).
May 13 2021, 6:15 AM · scd
gniibe triaged T5437: PC/SC change: monitoring card status changes (possibly also for new reader) as Wishlist priority.
May 13 2021, 6:15 AM · scd

May 11 2021

gniibe added a comment to T5428: PC/SC detecting removal of card.

On Windows, smartcard is also used by logon/logout and certificates handling. Those may be related.

May 11 2021, 3:47 AM · Info Needed, Windows, scd, Bug Report
gniibe added a comment to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

Applied in rG32baa9acfb15: scd: Serialize READER_TABLE access for PC/SC..

May 11 2021, 3:42 AM · gnupg (gpg23), scd
gniibe added a comment to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

Please note that we don't use lock in apdu_dev_list_start/finish any more.
Use of lock is narrowed, only within apdu_open_reader function.

May 11 2021, 3:41 AM · gnupg (gpg23), scd

May 10 2021

werner assigned T5428: PC/SC detecting removal of card to gniibe.

(I disabled the account of this boor)

May 10 2021, 6:43 PM · Info Needed, Windows, scd, Bug Report
gillcovid19 placed T5428: PC/SC detecting removal of card up for grabs.
May 10 2021, 12:42 PM · Info Needed, Windows, scd, Bug Report
werner triaged T5428: PC/SC detecting removal of card as High priority.
May 10 2021, 8:51 AM · Info Needed, Windows, scd, Bug Report
werner added a comment to T5428: PC/SC detecting removal of card.

I don't think that it is --pcsc-shared related; Andre reported that he noticed such a behaviour before we introduced this.

May 10 2021, 8:49 AM · Info Needed, Windows, scd, Bug Report