It takes 8-9 secs until pinentry asks for the PIN of the OpenPGP card

Matthias Apitz guru at unixarea.de
Thu May 16 10:14:04 CEST 2024


El día jueves, mayo 16, 2024 a las 04:09:44 +0900, NIIBE Yutaka escribió:

> Hello,
> 
> Matthias Apitz <guru at unixarea.de> wrote:
> > It seems that the first time is longer. I will increase the debug-level
> > for scdaemon.
> 
> Thank you for the information.  I think that it's better to debug how
> PC/SC goes.
> 
> To get full debug log in lower level, you can invoke pcscd manually with
> root:
> 
>     # LIBCCID_ifdLogLevel=0xffff pcscd -f --debug

This isn't that easy. The pcscd is running (when needed) as:

purism at pureos:~$ ps ax | grep pcscd
   2151 ?        Ssl    0:00 /usr/sbin/pcscd --foreground --auto-exit

it is launched by a system service:

root at pureos:/home/purism# systemctl status pcscd
● pcscd.service - PC/SC Smart Card Daemon
     Loaded: loaded (/lib/systemd/system/pcscd.service; indirect; vendor pres>
    Drop-In: /usr/lib/systemd/system/pcscd.service.d
             └─librem5.conf
     Active: active (running) since Thu 2024-05-16 10:02:44 CEST; 12s ago
TriggeredBy: ● pcscd.socket
       Docs: man:pcscd(8)
    Process: 27601 ExecStartPre=/bin/bash -c echo 1 > /sys/class/leds/smc_en/>
    Process: 27602 ExecStartPre=/bin/bash -c echo 1 > /sys/class/leds/smc_en/>
   Main PID: 27603 (pcscd)
      Tasks: 5 (limit: 3015)
     Memory: 752.0K
        CPU: 303ms
     CGroup: /system.slice/pcscd.service
             └─27603 /usr/sbin/pcscd --foreground --auto-exit

I killed a running pcscd and started it as root as you say, but this
make gpg-agent failing to communicate.

I have to figure out how to set your env var LIBCCID_ifdLogLevel=0xffff
and to where the debug log of pcscd goes in this case. This will take a
while....


	matthias



-- 
Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

I am not at war with Russia.  Я не воюю с Россией.
Ich bin nicht im Krieg mit Russland.



More information about the Gnupg-users mailing list