MacGPG2: GPG is *very* slow / key server with automatically retrieve keys enabled

Andrey's Avatar


23 May, 2017 12:45 PM

GPG is very slow. It takes ages for git to display the output. I can see GPG processes hanging in process list. They simply do nothing and delay everything. Some of programs like SourceTree simply freeze and unusable at this point.

Run git directly on any repo where you have signed commits, i.e:

`log --graph --pretty=format:'%Cred%h%Creset - %Cblue%G?%Creset %s %C(yellow)%d %C(bold blue)<%an>'

I expect it to be reasonably fast

macOS           10.12.5     16F73
GPG Suite       2017.1      1896n   (87683d7)
GPGMail         2.7         1219n   (528f510)
GPG Keychain    1.3.3       1335n   (a2fcb84)
GPGServices     1.11        943n    (872e77d)
MacGPG2         2.0.30      891n    (d962b47)
GPGPreferences  2.0.2       958n    (2ebf212)
Libmacgpg       0.8         802n    (7ee7104)
pinentry        0.9.7       20n     (e5fe53a)
  1. 1 Posted by Andrey on 23 May, 2017 12:49 PM

    Andrey's Avatar

    I think the problem is in the option to automatically download public keys from server. it seems that it takes forever to query that and macGPG does not cache results which causes it to go to server each time it stumbles upon missing key.

    It would be smart to at least have 5 minutes cache.

  2. Support Staff 2 Posted by Steve on 24 May, 2017 02:19 PM

    Steve's Avatar

    Hi Andrey,

    welcome to the GPGTools support platform. Sorry you are having problems using GPG Suite.

    Could you share, which key server you are using?

    To workaround this you could disable automatic key retrival in GPGPreferences / GPG Suite in the settings tab below the key server dropdown.

    All the best,

  3. 3 Posted by Andrei Mihailov on 24 May, 2017 02:21 PM

    Andrei Mihailov's Avatar

    Hi Steve,

    Disabling automatic retrieval solved this problem.

    I use default server which is hkps:// <hkps://>


  4. Support Staff 4 Posted by Steve on 24 May, 2017 02:54 PM

    Steve's Avatar

    Perfect. Glad, this is solved for you. I'm closing this discussion. Should you need further assistance or have questions you can re-open this discussion here or open a new one any time.

    Best, steve

  5. Steve closed this discussion on 24 May, 2017 02:54 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac