What more could you want?
GPG, Mail 4.2, Snow Leopard, and Happiness
I discovered Cyanide and Happiness on YouTube the other day. It’s hilarious.
Also, I found a way to use GPG signing and encryption in Apple’s Mail app.
First, quit Mail. I know it’s hard, but you can do it!
Second, back up your GPG keys and REMOVE YOUR EXISTING ~/.gnupg directory if it exists. The configuration file that already exists somehow conflicts with the pinentry app that prompts for your GPG password. I back up my keys this way:
$ gpg -a –export me@ozymo.com >> me_ozymo.com.asc$ gpg -a –export-secret-key me@ozymo.com >> me_ozymo.com.asc
Note that this will store your PRIVATE key in the file as well. This is necessary for importing, but not ideal to keep around on some random computer. Use your head.

Third, download this file. If you don’t trust me, look here on page 6. Or here. Same file. Once it downloads, drag it into ~/Library/Mail/Bundles. If there is already a GPGMail.mailbundle there, remove it and drop the new one in place.
Fourth, open Mail.
Fifth, be happy. And check out Cyanide and Happiness. It’s REALLY funny. I laughed my ass off and sewed it to a chair.
/cs
| Print article | This entry was posted by chuck on February 5, 2010 at 3:31 am, and is filed under Personal, Security, Web. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

about 3 months ago
woot! thanks!
about 3 months ago
I am able to get it to encrypt files but it won’t decrypt mail messages. I get this:
Internal error: -[MimePart getNumberOfAttachments:isSigned:isEncrypted:]: unrecognized selector sent to instance 0x1179ab890
Do you have any ideas on what may be causing this error?
about 3 months ago
Looks like this has to do with the 10.6.3 OS X update of late. See here on the gpgmail-users mailing list: http://bit.ly/98pfQR.
I’ve confirmed that the same things happens to me.
The “unrecognized selector” exception looks like something Cocoa-related, and may be simply an interface bug. Guess we’ll have to see what happens in the future.
One workaround is to use OpenPGP/MIME, but this is only really helpful if you have the OpenPGP app. Otherwise, you have to save the *.asc file attachment and manually decrypt it with GPG.
Hope this helps!
/cs
about 3 months ago
Could you please give some hints on how to create a key. The Bundle works, but I have no idea how to use it…
about 3 months ago
You need to start here.
about 2 months ago
There’s a thread on Apple’s forums for how to fix the “unrecognized selector” bug, with a download to a new .mailbundle that fixes the problem.
See http://discussions.apple.com/thread.jspa?threadID=2136007&tstart=0&messageID=11155336
Brian