tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/76767-gpg-keychain-searching-for-key-failedGPGTools: Discussion 2018-09-20T16:26:46Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/456665192018-07-11T14:48:57Z2018-07-11T14:48:57ZGPG Keychain: searching for key failed<div><p>Hi Slavomir,</p>
<p>welcome to the GPGTools support platform. Sorry you are having problems using GPG Suite.</p>
<p>Unfortunately there are a variety of reasons why a key search can fail.</p>
<p>Does the problem persist after switching the key server address to hkps://hkps.pool.sks-keyservers.net and trying a few times?</p>
<p>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 repeat your key search.</p>
<p>It could be possible that your nameserver is at fault. In that case, please try to change the nameserver (DNS) to 1.1.1.1 and try again.</p>
<p>If the problem persists, please open Terminal and run the following commands to create some debug output for us:</p>
<pre>
<code>echo "debug-level guru" >> ~/.gnupg/dirmngr.conf
echo "debug-all" >> ~/.gnupg/dirmngr.conf
echo "log-file /tmp/dirmngr.log" >> ~/.gnupg/dirmngr.conf
killall dirmngr
gpg --search-keys team@gpgtools.org
gpg --keyserver hkps://hkps.pool.sks-keyservers.net --search-keys team@gpgtools.org</code>
</pre>
<p>After running these commands, please send us the /tmp/dirmngr.log file</p>
<ol>
<li>open finder and press ⇧⌘G</li>
<li>paste /tmp/dirmngr.log</li>
<li>attach the dirmngr.log file to this discussion</li>
</ol>
<p>Once you are done, it's best to remove the debugging option:</p>
<ol>
<li>open finder and press ⇧⌘G</li>
<li>paste ~/.gnupg/dirmngr.conf</li>
<li>open that file with TextEdit</li>
<li>remove the following lines
<ul>
<li>debug-level guru</li>
<li>debug-all</li>
<li>log-file /tmp/dirmngr.log</li>
</ul>
</li>
</ol>
<p>Now open Terminal.app again and execute the following commands:</p>
<p>rm /tmp/dirmngr.log killall dirmngr</p>
<p>Best,<br>
steve</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/456665192018-07-11T15:11:32Z2018-07-11T15:11:32ZGPG Keychain: searching for key failed<div><p>Hi Slavomir,</p>
<p>GnuPG complains because no protocol is given for the keyserver. So you either have to pick the MIT keyserver from our lists of keyserver in System Preferences -> GPG Suite or GPG Keychain -> Preferences or manually change the entry in <code>~/.gnupg/dirmngr.conf</code> to read:</p>
<pre>
<code>keyserver hkps://pgp.mit.edu</code>
</pre>
<p>Hope that helps.</p></div>Luke Le