Expired

by Kevin on December 29, 2008
in Journal

Aparrently my GPG key expired on christmas eve and I neglected to recreate it. Well I have now done so.

Key ID:D6A9008F

Fingerprint: 1565 25BC E844 BB10 FC92 2FD5 B668 6B19 D6A9 008F

Alpine and GPG

by Kevin on November 25, 2008
in Random Knowlege

For a while I have been trying to get used to using the command line for all of my application needs. One of the sticking points for me is email. As far as I can see, the two main text based email clients are Alpine and Mutt.

Mutt seemed to be a pain to configure, I couldn’t find an entry in the config file to put in my details and it brought in a whole bunch of other packages onto my system. Mutt seems to only be able to retrieve mail on its own. Sending requires the extra software which is a downside to me. Extra stuff to update, more possibility of security holes. Alpine on the other hand, has no such problems.

The other main part of email for me is GPG functionality. The default email client in Ubuntu, Evolution, has a really simple way of configuring GPG, just put your key ID into a text field and it does the rest. However, Evolution has a ton of bells and whistles like calendars and address book functionality. Plus I can’t have it backgrounded.

Klaatu did a Hacker Public Radio episode on how to integrate GPG and Alpine but I felt that during the main part he spoke too fast and never went over the proper syntax of the configuration lines, like the need for correct capitalisation. After hunting around a bit more, I found a page that had the correct lines ready for copy and paste (Edit: the symlinks are needed to use the filters properly).

First, open a shell and do the following commands:

sudo ln -s /usr/bin/gpg /usr/bin/encrypt

sudo ln -s /usr/bin/gpg /usr/bin/sign

Then open your .pinerc file and amend the display and sending filters to this:

display-filters=_LEADING("-----BEGIN PGP SIGNED MESSAGE")_ /usr/bin/gpg --decrypt,
_LEADING("-----BEGIN PGP MESSAGE")_ /usr/bin/gpg --decrypt

sending-filters=/usr/bin/encrypt --encrypt -r _RECIPIENTS_ -a,
/usr/bin/sign --clearsign

Whack that into your .pinerc file in the right places and so long as you have GPG set up encrypted mail should work.

GPG Key

by Kevin on May 22, 2008
in Journal

I have generated a new GPG key for various encryption purposes. If you have the capability, please try and use it.

Fingerprint: 120B 1082 1C39 7542 8B42  D6A7 F87B 7CC9 04EF 0F0C

Key ID: 04EF0F0C