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-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