GPG Keychain: Bad key server error

Yosuke Matsumura's Avatar

Yosuke Matsumura

25 Jul, 2018 08:30 PM

I am getting the following error when trying to configure the key server. Regardless of which one I choose, I am given this error. I have attempted to change DNS servers, with no change. I am not running a firewall. I am not on a corporate network.

Bad key server
The key server you have entered is not working.
Please check the key server address. It should look something like: hkp://

The key server could also be offline. In that case, please use another key server.

Successful connection to keyserver

Additional info
macOS High Sierra 10.13.6, GPG Suite 2018.3

macOS                   10.13.6     17G65
GPG Suite               2018.3      2223    (8d0c266)
GPGMail                 3.0b7       1319    (c2d0df0a)
GPG Keychain            1.4.4       1460    (9010342)
GPGServices             1.11.4      1013    (0b04f6c)
MacGPG                  2.2.8       916     (0ed4a99)
GPG Suite Preferences   2.1.2       997     (1a09bc7)
Libmacgpg               0.8.5       863     (0707962)
pinentry           9       (db18340)
  1. Support Staff 1 Posted by Steve on 29 Jul, 2018 11:41 AM

    Steve's Avatar

    Hi Yosuke,

    unfortunately there are a variety of reasons why defining a key server can fail.

    Is there any chance that you are using Little Snitch or any other firewall on your Mac? If so, please temporarily disable that software and retry to set a key server.

    You write you already tried changing the DNS. But just in case, could you re-try to switch to and see if that changes anything: If you are seeing the error Connection: Refused, it is possible that your nameserver is at fault. In that case, please try to change the nameserver (DNS) to and try again.

    Also, could you try to restart your mac and then set a key server.

    We'll go from there.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • 2018-07-25_20-30_DebugInfo.gpg 10.1 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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