<?xml version="1.0"?>
<rdf:RDF
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:foaf="http://xmlns.com/foaf/0.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns="http://purl.org/rss/1.0/"
>
<channel rdf:about="http://joves.ubuntu.cat/planet">
	<title>Planeta Joves Ubuntaires</title>
	<link>http://joves.ubuntu.cat/planet</link>
	<description>Planeta Joves Ubuntaires - http://joves.ubuntu.cat/planet</description>

	<items>
		<rdf:Seq>
			<rdf:li rdf:resource="http://bloc.eurion.net/?p=584" />
		</rdf:Seq>
	</items>
</channel>

<item rdf:about="http://bloc.eurion.net/?p=584">
	<title>RainCT: GPG key signing with CAFF</title>
	<link>http://bloc.eurion.net/archives/2010/gpg-key-signing-with-caff/</link>
	<content:encoded>&lt;img class="face" src=&quot;http://joves.ubuntu.cat/planeta/images/faces/rainct.png&quot; alt=&quot;Cara a Ubuntu.cat&quot; /&gt;&lt;p&gt;I&amp;#8217;ve finally got around to doing my homework from &lt;a href=&quot;http://fosdem.org/2010/&quot;&gt;FOSDEM&lt;/a&gt; and since I&amp;#8217;m sure before long I&amp;#8217;ll have forgotten again how all this works, let me write it down here.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Installing CAFF&lt;/strong&gt; (CA &amp;#8211; Fire and Forget)&lt;/p&gt;
&lt;p&gt;Easy.&lt;/p&gt;
&lt;pre&gt;sudo aptitude install signing-party&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;2. Configuring CAFF&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For this we open up ~/.caffrc and write in something like this:&lt;/p&gt;
&lt;pre&gt;$CONFIG{'owner'} = 'Siegfried Gevatter';
$CONFIG{'email'} = 'name@example.com';
$CONFIG{'keyid'} = [ qw{1CFC22F3363DEAE3} ];
$CONFIG{'gpg-sign-args'} = 'save';
&lt;/pre&gt;
&lt;p&gt;The last line avoids the default behavior of dropping you into an interactive &lt;strong&gt;gpg&lt;/strong&gt; session for each key, and just signs all IDs automatically after asked for confirmation. I&amp;#8217;ve also set the trust level to 2 (&amp;#8220;&lt;em&gt;I have checked this key casually.&lt;/em&gt;&amp;#8220;) by creating a &lt;em&gt;~/.caff/gnupghome/gpg.conf&lt;/em&gt; file with:&lt;/p&gt;
&lt;pre&gt;personal-digest-preferences SHA256
cert-digest-algo SHA256
default-cert-level 2&lt;/pre&gt;
&lt;p&gt;To further streamline the process, I&amp;#8217;ve defined an alias in my &lt;em&gt;~./.bashrc&lt;/em&gt; so that CAFF won&amp;#8217;t ask for confirmation for every single e-mail it sends:&lt;/p&gt;
&lt;pre&gt;alias caff=&quot;caff -m yes&quot;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;3. Installing and configuring sSMTP&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now so that CAFF can send out the mails, we need a mail agent. If you don&amp;#8217;t have one already, you&amp;#8217;ll need to install one and configure it to work with your e-mail setup (in my case, Gmail). I decided to go with sSMTP, but you can use any other MTA of your choice.&lt;/p&gt;
&lt;p&gt;I followed those instructions to configure it:  &lt;a href=&quot;http://www.nixtutor.com/linux/send-mail-with-gmail-and-ssmtp/&quot;&gt;Send Mail with Gmail and sSMTP&lt;/a&gt;. Additionally, I changed the permissions of the &lt;em&gt;/etc/ssmtp/ssmtp.conf&lt;/em&gt; file to 640 (&lt;em&gt;-rw-r&amp;#8212;&amp;#8211;&lt;/em&gt;) and the owner to &lt;em&gt;root.rainct&lt;/em&gt; (where &lt;em&gt;rainct&lt;/em&gt; is my username) so that the plain-text password in it is protected.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. Using CAFF&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;That&amp;#8217;s it. Well, at least for the setup part, now the real work begins, verifying and signing all the keys. In my case I had them printed out on paper and just typed &amp;#8220;&lt;em&gt;caff &amp;lt;id1&amp;gt; &amp;lt;id2&amp;gt; &amp;lt;&amp;#8230;&amp;gt;&amp;#8221; &lt;/em&gt; (eg. &amp;#8220;&lt;em&gt;caff 363DEAE3&lt;/em&gt;&amp;#8220;). CAFF then downloads the keys, asks for confirmation for each of them so you can double-check, and finally e-mails the signatures to everyone.&lt;/p&gt;
&lt;p&gt;By the way, in case you accidentally sign the wrong key (eg. one you had on your list but whose owner you didn&amp;#8217;t met), you can still revoke your signature (see this &amp;#8220;&lt;a href=&quot;http://http://lists.gnupg.org/pipermail/gnupg-users/2005-August/026543.html&quot;&gt;Help revoking a signature&lt;/a&gt;&amp;#8221; mailing list post).&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;small&gt;
&lt;a href=&quot;http://bloc.eurion.net/archives/2010/gpg-key-signing-with-caff/#comments&quot;&gt;No comments&lt;/a&gt;&lt;br /&gt;
© Siegfried-Angel Gevatter Pujals, 2010. |
&lt;a href=&quot;http://bloc.eurion.net/archives/2010/gpg-key-signing-with-caff/&quot;&gt;Permalink&lt;/a&gt; |
&lt;a rel=&quot;license&quot; href=&quot;http://creativecommons.org/licenses/by-nc-sa/3.0/&quot;&gt;License&lt;/a&gt; |
Post tags: &lt;a href=&quot;http://bloc.eurion.net/archives/tag/debian/&quot; rel=&quot;tag&quot;&gt;Debian&lt;/a&gt;, &lt;a href=&quot;http://bloc.eurion.net/archives/tag/events/&quot; rel=&quot;tag&quot;&gt;events&lt;/a&gt;, &lt;a href=&quot;http://bloc.eurion.net/archives/tag/ubuntu/&quot; rel=&quot;tag&quot;&gt;Ubuntu&lt;/a&gt;&lt;br /&gt;
&lt;/small&gt;&lt;/p&gt;</content:encoded>
	<dc:date>2010-06-12T14:06:41+00:00</dc:date>
	<dc:creator>RainCT</dc:creator>
</item>

</rdf:RDF>
