<?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>bits &#124; andy smith&#039;s blog &#187; pkcs</title>
	<atom:link href="http://andys.org.uk/bits/tag/pkcs/feed/" rel="self" type="application/rss+xml" />
	<link>http://andys.org.uk/bits</link>
	<description>random stuff from the mind of a twenty-something professional geek</description>
	<lastBuildDate>Mon, 16 Apr 2012 00:39:54 +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>OpenSSH and OpenSC for Debian and Ubuntu</title>
		<link>http://andys.org.uk/bits/2009/12/23/openssh-and-opensc-for-debian-and-ubuntu/</link>
		<comments>http://andys.org.uk/bits/2009/12/23/openssh-and-opensc-for-debian-and-ubuntu/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 02:27:04 +0000</pubDate>
		<dc:creator>Andy Smith</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[opensc]]></category>
		<category><![CDATA[pkcs]]></category>
		<category><![CDATA[rsa]]></category>
		<category><![CDATA[smartcard]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://andys.org.uk/bits/?p=8</guid>
		<description><![CDATA[I&#8217;m using OpenSC at the moment so that I can repurpose an otherwise unused Aladdin eToken to hold SSH keys. I could go through the process involved in setting up the token, but as this chap has already done a thorough job, I won&#8217;t go into detail. Unfortunately, the openssh-client package from Debian (and Ubuntu) [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using <a href="http://www.opensc.org/">OpenSC</a> at the moment so that I can repurpose an otherwise unused <a href="http://www.aladdin.com/etoken">Aladdin eToken</a> to hold SSH keys. I could go through the process involved in setting up the token, but as <a href="http://www.mayrhofer.eu.org/Default.aspx?pageid=78">this chap</a> has already done a thorough job, I won&#8217;t go into detail.</p>
<p>Unfortunately, the <em>openssh-client</em> package from Debian (and Ubuntu) doesn&#8217;t enable OpenSC support. It&#8217;s trivial to rebuild the package with OpenSC support, but for those who don&#8217;t want to or can&#8217;t for some reason, I&#8217;ve put my rebuilt, OpenSC-enabled packages <a href="http://andys.org.uk/debian/pool/main/o/openssh/">here</a>.</p>
<p>Once installed, if your token is set up correctly, you should be able to get your SSH public key from the card with:-</p>
<blockquote>
<pre>ssh-keygen -D &lt;card&gt;</pre>
</blockquote>
<p>&#8230;which should give you something like:-</p>
<blockquote>
<pre>ssh-rsa AAAA .. .. .. t8/Q==
1024 65537 14233 .. .. .. 70941</pre>
</blockquote>
<p>You can then add your private key to a running SSH agent with:-</p>
<blockquote>
<pre>ssh-add -s &lt;card&gt;</pre>
</blockquote>
<p>Pop in your PIN, and ssh should function as if you were using a normally-generated key.</p>
]]></content:encoded>
			<wfw:commentRss>http://andys.org.uk/bits/2009/12/23/openssh-and-opensc-for-debian-and-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

