<?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>linsec.ca blog &#187; gnupg</title>
	<atom:link href="http://linsec.ca/blog/tag/gnupg/feed/" rel="self" type="application/rss+xml" />
	<link>http://linsec.ca/blog</link>
	<description>You can have it right, or you can have it now.  But you can&#039;t have it right now.</description>
	<lastBuildDate>Sat, 05 May 2012 22:03:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Updated my GPG key</title>
		<link>http://linsec.ca/blog/2010/09/29/updated-my-gpg-key/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=updated-my-gpg-key</link>
		<comments>http://linsec.ca/blog/2010/09/29/updated-my-gpg-key/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 22:41:56 +0000</pubDate>
		<dc:creator>vdanen</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[gnupg]]></category>

		<guid isPermaLink="false">http://linsec.ca/blog/?p=841</guid>
		<description><![CDATA[I realized today, after having a conversation with someone at work about gpg keys and rpm support, that I haven&#8217;t updated my GPG key in about 6 years. Then I realized I harped on CERT not too long ago about not doing things right. =) Granted, my key hasn&#8217;t been compromised and I have no [...]]]></description>
			<content:encoded><![CDATA[<p>I realized today, after having a conversation with someone at work about gpg keys and rpm support, that I haven&#8217;t updated my GPG key in about 6 years.</p>
<p>Then I realized I harped on CERT not too long ago about not doing things right.  =)  Granted, my key hasn&#8217;t been compromised and I have no established schedule for rotating keys, but 6 years is a long time.  So I&#8217;ve generated a new key, and revoked the old key.  Direct link to the new key/revocation certificate: <a href="http://linsec.ca/vdanen.asc">http://linsec.ca/vdanen.asc&#8221;</a>.</p>
<p>It has been signed with my old key and a few others.  If anyone out there has signed my old key (0xFEE30AD4), I would surely appreciate you signing the new key as well.  I think a trail of trust has been established with the new key.  The particulars:</p>
<pre>

pub   2048R/B86380FC 2010-09-29 [expires: 2013-09-28]
uid                  Vincent Danen <vdanen@linsec.ca>
sig 3        B86380FC 2010-09-29  Vincent Danen <vdanen@linsec.ca>
sig          FEE30AD4 2010-09-29  Vincent Danen <vdanen@linsec.ca>
sig          CA57AD7C 2010-09-29  PGP Global Directory Verification Key
sig          CA57AD7C 2010-09-29  PGP Global Directory Verification Key
uid                  Vincent Danen <vdanen@redhat.com>
sig 3        B86380FC 2010-09-29  Vincent Danen <vdanen@linsec.ca>
sig          FEE30AD4 2010-09-29  Vincent Danen <vdanen@linsec.ca>
sig          CA57AD7C 2010-09-29  PGP Global Directory Verification Key
uid                  Vincent Danen <vdanen@annvix.org>
sig 3        B86380FC 2010-09-29  Vincent Danen <vdanen@linsec.ca>
sig          FEE30AD4 2010-09-29  Vincent Danen <vdanen@linsec.ca>
sig          CA57AD7C 2010-09-29  PGP Global Directory Verification Key
sig          CA57AD7C 2010-09-29  PGP Global Directory Verification Key
sub   2048R/729BAAE4 2010-09-29 [expires: 2013-09-28]
sig          B86380FC 2010-09-29  Vincent Danen <vdanen@linsec.ca>
</pre>
<p>And the fingerprint info:</p>
<pre>
pub   2048R/B86380FC 2010-09-29 [expires: 2013-09-28]
      Key fingerprint = 786F 8AA3 A608 8CA2 33A3  4D8E 5179 17ED B863 80FC
uid                  Vincent Danen <vdanen@linsec.ca>
uid                  Vincent Danen <vdanen@redhat.com>
uid                  Vincent Danen <vdanen@annvix.org>
sub   2048R/729BAAE4 2010-09-29 [expires: 2013-09-28]
</pre>
<p>Neato&#8230; wordpress hides email addresses, so the above output is missing any email addresses listed.  I&#8217;ve also sent the new key and revocation of the old key to the keyservers.</p>
]]></content:encoded>
			<wfw:commentRss>http://linsec.ca/blog/2010/09/29/updated-my-gpg-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How not to update GPG keys</title>
		<link>http://linsec.ca/blog/2010/09/14/how-not-to-update-gpg-keys/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-not-to-update-gpg-keys</link>
		<comments>http://linsec.ca/blog/2010/09/14/how-not-to-update-gpg-keys/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 23:30:40 +0000</pubDate>
		<dc:creator>vdanen</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[gnupg]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://linsec.ca/blog/?p=827</guid>
		<description><![CDATA[This seems to be an ongoing saga so now I&#8217;m going to vent about it. It is ridiculous that an organization supposedly as secure as CERT can have such poor distribution mechanisms for alerting users of their new GPG keys. It is really important that, when you update GPG keys and distribute the public key [...]]]></description>
			<content:encoded><![CDATA[<p>This seems to be an ongoing saga so now I&#8217;m going to vent about it.  It is ridiculous that an organization supposedly as secure as <a href="http://www.cert.org/">CERT</a> can have such poor distribution mechanisms for alerting users of their new GPG keys.  It is really important that, when you update GPG keys and distribute the public key that you can <i>easily</i> establish trust of the new key.  There are a few ways this can be done: sign the new key with the old (known and/or trusted) key, sign any distribution mails with the old key (to ensure authenticity), include a revocation in the new key to import, and have a secure place where that information can be obtained.</p>
<p>CERT changes keys often &#8212; way more often than their once-a-year policy on their web site indicates; well, this year they have anyways.  Previous years were one key a year.  However, they don&#8217;t follow any of these &#8220;best practices&#8221;.  And they know it, because I&#8217;ve told them in the past.  And yet, even now, they still can&#8217;t get it right.  What&#8217;s more amusing is that on their <a href="https://www.cert.org/contact_cert/encryptmail.html">Sending Sensitive Information to CERT</a> page, which is SSL encrypted, shows <i>two</i> different fingerprints.  For posterity, I took the following screenshot:</p>
<p><a href="http://linsec.ca/blog/wp-content/uploads/2010/09/cert-gpg.jpg" rel="prettyPhoto[827]"><img src="http://linsec.ca/blog/wp-content/uploads/2010/09/cert-gpg-300x165.jpg" alt="CERT&#039;s web page for posterity" title="CERT web page" width="300" height="165" class="aligncenter size-medium wp-image-835" /></a></p>
<p>The wrong fingerprint listed in section #2 belongs to the old key.<br />
<span id="more-827"></span><br />
The key released today is:</p>
<pre>
pub   2048R/72C33BD5 2010-09-13 [expires: 2011-09-30]
      Key fingerprint = 79DA 4C07 0AE5 EB20 D641  3F80 67B1 5F29 72C3 3BD5
uid                  CERT Coordination Center <cert@cert.org>
sig 3        72C33BD5 2010-09-13  CERT Coordination Center <cert@cert.org>
</pre>
<p>While the previous key is:</p>
<pre>
pub   2048R/9A478CA0 2010-03-03 [revoked: 2010-09-13]
      Key fingerprint = E9EA E7FB D8AF E5AE FD36  41DE 5146 432C 9A47 8CA0
rev          9A478CA0 2010-09-13  CERT Coordination Center <cert@cert.org>
uid                  CERT Coordination Center <cert@cert.org>
sig 3        9A478CA0 2010-03-03  CERT Coordination Center <cert@cert.org>
</pre>
<p>To see how things are getting sloppy, we need to go back a bit further to see what had been done in the past:</p>
<pre>
pub   2048R/B7FBBBC1 2010-01-20 [revoked: 2010-03-03]
      Key fingerprint = 66A6 DAC9 3014 21CB DCA6  A6F6 3389 F064 B7FB BBC1
rev          B7FBBBC1 2010-03-03  CERT Coordination Center <cert@cert.org>
uid                  CERT Coordination Center <cert@cert.org>
sig 3        B7FBBBC1 2010-01-20  CERT Coordination Center <cert@cert.org>
sig          AF30D800 2010-01-20  CERT Coordination Center <cert@cert.org>
</pre>
<p>Notice the difference here?  This third-latest key was signed by another CERT-owned key (AF30D800), which was the previous-to-that key used.  Trust is then established to the new key, <i>from</i> the old (known) key.  The most current and previous keys were not signed by their predecessors, which makes them harder to trust.  So in the last three keys, two are self-signed, one is properly signed to establish trust (by the previous key).  What&#8217;s even more sad is that key AF30D800 was nicely signed: not only by the previous key, but also by a &#8220;master key&#8221; which also establishes more authenticity of the key:</p>
<pre>
pub   2048R/AF30D800 2009-06-15 [revoked: 2010-01-20]
      Key fingerprint = 943C 0A2E 4CB8 4C8F CA53  22F8 680D 4DC1 AF30 D800
rev          AF30D800 2010-01-20  CERT Coordination Center <cert@cert.org>
uid                  CERT Coordination Center <cert@cert.org>
sig 3        AF30D800 2009-06-15  CERT Coordination Center <cert@cert.org>
sig          18DEBE70 2009-06-15  Networked Systems Survivability Master Key <nomail@cert.org>
sig          14C33F57 2009-06-15  CERT Coordination Center <cert@cert.org>
</pre>
<p>Now this one is a good key, a trustable key.  The last two keys are not.</p>
<p>Couple that with the half-updated web page and you&#8217;re left scratching your head &#8212; or, at least, I was.  Not so much this time because, sadly, I&#8217;m no longer surprised.  But last time I actually phoned CERT to verify the new key&#8217;s fingerprint because I had nothing to trust it with.  In fact, when the mail came out to notify of the new key, it was signed with the <i>new</i> key, not the old key.</p>
<p>Ummm&#8230; excuse me, but I can spoof sending a mail from cert@cert.org and generate my own key with the uid cert@cert.org and bloody well sign it with the spoofed key I just generated!  The only thing I couldn&#8217;t do is update their web page but, honestly, I wonder how many people check.  And of those that do, have they done it in the past and noticed prior inconsistencies and just chalked it up to&#8230; incompetence?  Negligence?  Key distribution malpractice?</p>
<p>Again, there is nothing for me to trust that this new key is legit.</p>
<p>It&#8217;s sad that an organization built around <i>security</i> has no clue about this.  What&#8217;s worse, is they&#8217;ve been told (twice!) about a better way to distribute new keys.  I know.  I told them.  Both times.</p>
<p>So, to recap, these are things you <i>should</i> do when distributing a new GPG key:</p>
<ol>
<li> Sign the email sending out the <i>new</i> key with the <i>old</i> key.  Seriously, it establishes trust and proves you are who you say you are
<li> Fully and completely update your web site.  It&#8217;s nice you have one, and it&#8217;s nice that it&#8217;s semi-updated, and even better that you can get to it via SSL.  But if it lists the new key in section 1 and section 2 is about verifying the fingerprint but lists the <i>old</i> key&#8217;s fingerprint, how do you trust any of it?
<li> Sign the <i>new</i> key with the <i>old</i> key.  It proves that the person/organization who has the old key trusts the new one enough to sign it.  Like giving it a seal of approval or just saying &#8220;hey, this is legit&#8221;
<li> For Pete&#8217;s sake, revoke the old key!  It doesn&#8217;t have to necessarily be in the same message, but it should be revoked.  Heck, send out a mail signed with the old key, containing the new key, and then send out another message signed with the new key, revoking the old key.  Or have one email message sending two different GPG-signed sections so one email does it all.
</ol>
<p>None of this is difficult to do, and it makes trusting these new keys so much easier.  I&#8217;ve not paid attention to see if other people/organizations fail so badly here, but I don&#8217;t get what makes this so hard to do.  It&#8217;s not rocket science, just common sense.  I can see Joe Average maybe not thinking about it, but for an organization like CERT?  Come on.  How are we supposed to trust what you send out when you can&#8217;t even get Simple Key Management 101 right?</p>
]]></content:encoded>
			<wfw:commentRss>http://linsec.ca/blog/2010/09/14/how-not-to-update-gpg-keys/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Encrypting and decrypting files with GnuPG</title>
		<link>http://linsec.ca/blog/2008/03/01/encrypting-and-decrypting-files-with-gnupg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=encrypting-and-decrypting-files-with-gnupg</link>
		<comments>http://linsec.ca/blog/2008/03/01/encrypting-and-decrypting-files-with-gnupg/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 23:40:42 +0000</pubDate>
		<dc:creator>vdanen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[gnupg]]></category>
		<category><![CDATA[techmail]]></category>

		<guid isPermaLink="false">http://linsec.ca/blog/2008/03/01/encrypting-and-decrypting-files-with-gnupg/</guid>
		<description><![CDATA[Last week&#8217;s TechMail tip was Encrypting and decrypting files with GnuPG, which covers some stuff about using gpg to deal with encryption of files (instead of just using gpg for mail).]]></description>
			<content:encoded><![CDATA[<p>Last week&#8217;s TechMail tip was <a href="http://blogs.techrepublic.com.com/opensource/?p=168">Encrypting and decrypting files with GnuPG</a>, which covers some stuff about using gpg to deal with encryption of files (instead of just using gpg for mail).</p>
]]></content:encoded>
			<wfw:commentRss>http://linsec.ca/blog/2008/03/01/encrypting-and-decrypting-files-with-gnupg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get started with GnuPG</title>
		<link>http://linsec.ca/blog/2008/02/06/get-started-with-gnupg/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=get-started-with-gnupg</link>
		<comments>http://linsec.ca/blog/2008/02/06/get-started-with-gnupg/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 16:33:51 +0000</pubDate>
		<dc:creator>vdanen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[gnupg]]></category>
		<category><![CDATA[techmail]]></category>

		<guid isPermaLink="false">http://linsec.ca/blog/2008/02/06/get-started-with-gnupg/</guid>
		<description><![CDATA[This week&#8217;s TechMail is Get started with GnuPG, a quick primer on another of my favourite tools: GnuPG. Learn the basics of getting your own GPG keypair created and learn a little bit about fingerprints and signatures and what they all mean. And if you want to get more into the guts and glory of [...]]]></description>
			<content:encoded><![CDATA[<p>This week&#8217;s TechMail is <a href="http://blogs.techrepublic.com.com/opensource/?p=165">Get started with GnuPG</a>, a quick primer on another of my favourite tools: GnuPG.  Learn the basics of getting your own GPG keypair created and learn a little bit about fingerprints and signatures and what they all mean.</p>
<p>And if you want to get more into the guts and glory of using GPG, you can read the article I wrote quite a few years ago on <a href="http://linsec.ca/Using_GnuPG">Using GnuPG</a>.  Like a few of the other articles on linsec.ca, that one could probably do with a bit of a refresher, but I don&#8217;t think any of it is necessarily out-dated.</p>
]]></content:encoded>
			<wfw:commentRss>http://linsec.ca/blog/2008/02/06/get-started-with-gnupg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

