tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/70191-gpgmail-email-signing-doesnt-workGPGTools: Discussion 2019-08-14T16:53:31Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/448442662018-03-05T15:56:12Z2018-03-05T15:56:13ZGPGMail: Email signing doesn't work<div><p>Create email, activate signing, type email, click send. Receive error saying "gpg: signing failed: No secret key"</p>
<p><strong>Expected</strong><br>
To have the email send</p>
<p><strong>Additional info</strong><br>
gpg -K</p>
<h2><a name="-users-svdgraaf-gnupg-pubring-gpg" class="anchor" href="#-users-svdgraaf-gnupg-pubring-gpg"></a>/Users/svdgraaf/.gnupg/pubring.gpg</h2>
<p>sec rsa4096 2016-08-16 [SC] [expires: 2032-08-12]<br>
6738D7785BE1F90915D361A0F3739C0925F36E9F uid [ultimate] Sander van de Graaf <a href="mailto:mail@svdgraaf.nl">mail@svdgraaf.nl</a><br>
ssb rsa4096 2016-08-16 [E] [expires: 2032-08-12]<br>
ssb rsa4096 2017-10-06 [E] [expires: 2021-10-06]</p>
<pre>
<code>macOS 10.13.3 17D47
GPG Suite 2018.1 2083 (9658b70)
GPGMail 3.0b4 1272 (461cda15)
GPG Keychain 1.4.2 1403 (128637e)
GPGServices 1.11.2 969 (e5438f7)
MacGPG 2.2.3 900 (cead4f9)
GPG Suite Preferences 2.1.1 993 (05eb1a6)
Libmacgpg 0.8.2 829 (943132e)
pinentry 0.9.7.1 9 (db18340)</code>
</pre></div>Sander van de Graaftag:gpgtools.tenderapp.com,2011-11-04:Comment/448442662018-03-05T16:28:55Z2018-03-05T16:28:55ZGPGMail: Email signing doesn't work<div><p>Hi Sander,</p>
<p>welcome to the GPGTools support platform. Sorry you are having problems using GPG Suite.</p>
<p>The several subkeys with same capability in your key are intentional? If so, could you please download and install our latest <a href="https://hotfixes.gpgtools.org/">latest hotfix GPG Suite</a> and see if that solves your problem.</p>
<p>There's at least one known issue in the current hotfix build so it's not recommended for productive use but it includes 2.2.5 which solves a problem in regards to subkey usage.</p>
<p>All the best,<br>
steve</p>
<p>Disclaimer: This is a development version which has not been thoroughly tested yet - bugs or crashes are to be expected. Thanks for helping us test.</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/448442662018-03-05T19:17:26Z2018-03-05T19:17:28ZGPGMail: Email signing doesn't work<div><p>First of all, no worries, I think it's a neat service you are providing, so keep it up!</p>
<p>I removed some of the subkeys, so now I only have one left. Unfortunately the hotfix doesn't fix the problem.</p>
<p>While checking if I could find a debug log somewhere, I enabled debug logging. I figured I wanted to check the settings so far, and tried this:</p>
<p>defaults read org.gpgtools.gpgmail<br>
2018-03-05 20:12:24.295 defaults[3512:51942]<br>
Domain org.gpgtools.gpgmail does not exist</p>
<p>That doesn't seem right, I tried reinstalling (even with the regular build) but still the same issue. Not sure if that might be the actual problem...?</p></div>Sandertag:gpgtools.tenderapp.com,2011-11-04:Comment/448442662018-03-05T19:44:28Z2018-03-05T19:44:32ZGPGMail: Email signing doesn't work<div><p>I got it!</p>
<p>It had nothing to do with the defaults, so whoever encounters the same issue in the future, that's not the issue.</p>
<p>My problem was I had 2 different email accounts, and without me noticing, mail.app (new install) was defaulting to my -other- email address, which does have a gpg key but not a secret key attached to it (yubikey, which was not attached). So the error makes perfect sense, I just wasn't paying attention. Switching to the correct outgoing address made it work (doh!).</p>
<p>Perhaps it would be nice to print the used identifier in the popup box somewhere so it's easier to spot in the future, something like:</p>
<p>"gpg: signing failed: No secret key" for <a href="mailto:xyz@example.com">xyz@example.com</a></p>
<p>Or perhaps log the whole message to syslog when debugging is on.</p>
<p>Anyway, thanks for the pointers! This ticket can be closed.<br>
Sander</p></div>Sandertag:gpgtools.tenderapp.com,2011-11-04:Comment/448442662018-03-06T14:57:31Z2018-03-06T14:57:31ZGPGMail: Email signing doesn't work<div><p>Hi Sander,</p>
<p>yeah the error message can surely be improved. We have a ticket for this problem. I connected this discussion with the existing ticket. That means, should this discussion get closed, it will be re-opened as soon as the ticket is closed. That way you'll stay in the loop and get notified as soon as we have news.</p>
<p>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.</p>
<p>Best,<br>
steve</p></div>Steve