<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alex&#039;s Adventures on the Infobahn &#187; gpg</title>
	<atom:link href="http://www.bennee.com/~alex/blog/tag/gpg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bennee.com/~alex/blog</link>
	<description>the wanderings of a supposed digital native</description>
	<lastBuildDate>Mon, 06 Sep 2010 12:40:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Adding Google Juice to mutt</title>
		<link>http://www.bennee.com/~alex/blog/2010/03/17/adding-google-juice-to-mutt/</link>
		<comments>http://www.bennee.com/~alex/blog/2010/03/17/adding-google-juice-to-mutt/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 07:35:42 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[mutt]]></category>

		<guid isPermaLink="false">http://www.bennee.com/~alex/blog/?p=1789</guid>
		<description><![CDATA[As I&#8217;ve been mailing out invites I discovered a minor problem with my data. My main email client is the fantastically functional mutt. It&#8217;s terminal based but incredibly flexible. When it comes to mass sorting/searching your email it leaves GUI based clients standing. However now I&#8217;m a roving around with a Google Phone the majority [...]]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;ve been mailing out invites I discovered a minor problem with my data.</p>
<p>
My main email client is the fantastically functional <a href="http://www.mutt.org">mutt</a>. It&#8217;s terminal based but incredibly flexible. When it comes to mass sorting/searching your email it leaves GUI based clients standing. However now I&#8217;m a roving around with a Google Phone the majority of my contact data is <a href="http://en.wikipedia.org/wiki/Gmail">in the cloud</a>. While I have a small address file used by mutt it only has a few oft-mailed addresses in it.</p>
<p>
Luckily thanks to <a href="http://code.google.com/apis/gdata/">Google&#8217;s data APIs</a> <b>your information</b> is only a few <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_web_services">RESTful</a> requests away. The <a href="http://code.google.com/p/goobook/">goobook</a> program provides a handy mutt compatible address book interface to this cloud data.</p>
<p>
There is one wrinkle however. The <a href="http://code.google.com/p/goobook/source/browse/trunk/README.txt#59">configuration</a> of the script involves putting some rather valuable login details in a plain text file on your home partition. While I like to think my machines are pretty secure and maintained you can always do more. Good security is defence in depth. A <a href="http://groups.google.com/group/goobook/browse_thread/thread/f632e3d5c4fcaf25">quick patch later</a> and I can store those details in an <a href="http://en.wikipedia.org/wiki/GNU_Privacy_Guard">GPG</a> encrypted file that can be decrypted on the fly when required.</p>
<p>
The final piece of the puzzle is creating these encrypted config files in the first place. Although you can do this by hand from the command line I find the best method is using <A href="http://www.emacswiki.org/emacs/EasyPG">EasyPG</a> (now part of Emacs 23). This will automatically cause any files with a .gpg extension to be encrypted. You can control the Emacs mode selection and default encryption key to use by using <a href="http://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables">file variables</a> in the header comments of the file.</p>
<p>
It&#8217;s not all perfect though, when enabling EasyPG I had to do the following:</p>
<p><pre style="color: #f5deb3; background-color: #2f4f4f; font-size: 8pt">
(<span style="color: #fa8072;">if</span> (maybe-load-library <span style="color: #ffa07a;">"</span><span style="color: #cdad00; font-weight: bold; text-decoration: underline;">epa</span><span style="color: #ffa07a;">-file"</span>)
    (<span style="color: #fa8072;">progn</span>
      (setenv <span style="color: #ffa07a;">"GPG_AGENT_INFO"</span> nil) <span style="color: #add8e6;">; </span><span style="color: #add8e6;">gpg-agent confuses epa when getting passphrase
</span>      (epa-file-enable)))
</pre>
<p>The problem seems to be that when GPG agent runs in terminal mode it confuses Emacs/EasyPG. By suppressing the GPG_AGENT_INFO environment variable EasyPG will fall back to requesting your passphrase in the mode line. While it takes care to flush the value as soon as possible it does open a small window of attack if an attacker can cause emacs to crash and dump core.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bennee.com/~alex/blog/2010/03/17/adding-google-juice-to-mutt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Keys Please</title>
		<link>http://www.bennee.com/~alex/blog/2010/03/08/new-keys-please/</link>
		<comments>http://www.bennee.com/~alex/blog/2010/03/08/new-keys-please/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 11:25:22 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.bennee.com/~alex/blog/?p=1780</guid>
		<description><![CDATA[I&#8217;ve finally gotten around to updating my personal GPG key. At the same time I&#8217;ve plumbed in the various bits I need into my mail client so it&#8217;s a little easier to sign, encrypt, and verify GPG enabled email. Of course the super paranoid will want to check the public key linked to is in [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally gotten around to updating my <a href="http://www.bennee.com/~alex/key.asc">personal GPG key</a>. At the same time I&#8217;ve plumbed in the various bits I need into my <a href="http://www.mutt.org/">mail client</a> so it&#8217;s a little easier to sign, encrypt, and verify GPG enabled email. Of course the super paranoid will want to check the public key linked to is in fact mine and not some evil twin clone of me. Contact me by some other means (any of my <a href="http://en.wikipedia.org/wiki/Extensible_Messaging_and_Presence_Protocol">XMPP</a> accounts* will do although to be safe I recommend using a <a href="http://en.wikipedia.org/wiki/Off-the-Record_Messaging">Off the Record</a> plugin).</p>
<p>
If you show me your cryptographic fingerprint I&#8217;ll show you mine <img src='/~alex/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>
<small>* That would be LJ chat, Google Talk or the new Facebook chat</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bennee.com/~alex/blog/2010/03/08/new-keys-please/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
