View previous topic :: View next topic |
Author |
Message |
mf2 n00b
Joined: 14 Jun 2007 Posts: 48
|
Posted: Fri Oct 18, 2024 5:56 am Post subject: (solved) gpg suddenly very slow |
|
|
I have been using pass together with gpg for years and everything was fine. However, since yesterday, for some reason gpg takes 12 seconds to decrypt a small password file - it used to be less than 1 second, and it is indeed very fast on my other machine.
When I kill gpg-agent it sometimes decrypts immediately, so it might have to do something with that. Running gpg under strace confirms, in fact, that it waits for gpg-agent.
I tried to change the pinentry program, but that did nothing. What else can I do to debug this?
Last edited by mf2 on Fri Oct 18, 2024 8:04 am; edited 1 time in total |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1955 Location: 127.0.0.1
|
Posted: Fri Oct 18, 2024 6:07 am Post subject: |
|
|
Hi,
What is your desktop ? See this link for potential explanations. |
|
Back to top |
|
|
mf2 n00b
Joined: 14 Jun 2007 Posts: 48
|
Posted: Fri Oct 18, 2024 6:49 am Post subject: |
|
|
I am using dwm, so no desktop. That link you posted I have found earlier before, but sadly that did not help me. I even recompiled my system with USE=-keyring, but no changes. |
|
Back to top |
|
|
mf2 n00b
Joined: 14 Jun 2007 Posts: 48
|
Posted: Fri Oct 18, 2024 8:04 am Post subject: |
|
|
I fixed it by disabling the "smartcard" useflag on app-crypt/gnupg.
To find this out, I set the following in ~/.gnupg/gpg-agent.conf:
Code: |
log-file /home/philipp/.gnupg/agent.log
debug-level guru
|
That showed me that for some reason gpg-agent was waiting on the smartcard daemon:
Code: |
2024-10-18 09:58:08 gpg-agent[384615] DBG: chan_10 <- SCD SERIALNO
2024-10-18 09:58:08 gpg-agent[384615] new connection to /usr/libexec/scdaemon daemon established (reusing)
2024-10-18 09:58:08 gpg-agent[384615] DBG: chan_11 -> SERIALNO
2024-10-18 09:58:40 gpg-agent[384615] DBG: chan_11 <- ERR 100696144 No such device <SCD>
2024-10-18 09:58:40 gpg-agent[384615] DBG: chan_10 -> ERR 100696144 No such device <SCD>
|
So I figured removing scddaemon could help, and indeed it did. |
|
Back to top |
|
|
|