<?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>The Cafes &#187; Security</title>
	<atom:link href="http://cafe.elharo.com/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://cafe.elharo.com</link>
	<description>Longer than a blog; shorter than a book</description>
	<lastBuildDate>Sat, 30 Mar 2013 11:51:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Would You Entrust Your Data to These Yokels?</title>
		<link>http://cafe.elharo.com/security/would-you-entrust-your-data-to-these-yokels/</link>
		<comments>http://cafe.elharo.com/security/would-you-entrust-your-data-to-these-yokels/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 12:38:58 +0000</pubDate>
		<dc:creator>Elliotte Rusty Harold</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[public key certificate]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://cafe.elharo.com/?p=571</guid>
		<description><![CDATA[If Dell can&#8217;t even manage their public key certificates, how can I trust them to keep my data safe and secure? Technical Details www.delldatasafe.com uses an invalid security certificate. The certificate is not trusted because the issuer certificate is unknown. (Error code: sec_error_unknown_issuer)]]></description>
				<content:encoded><![CDATA[<p><img src="http://www.elharo.com/blog/wp-content/uploads/2009/12/delldatasafe.png" alt="You have asked Firefox to connect<br />
securely to www.delldatasafe.com, but we can't confirm that your connection is secure.</p>
<p>Normally, when you try to connect securely,<br />
sites will present trusted identification to prove that you are<br />
going to the right place. However, this site's identity can't be verified.</p>
<p>What Should I Do?</p>
<p>If you usually connect to<br />
this site without problems, this error could mean that someone is<br />
trying to impersonate the site, and you shouldn't continue.</p>
<p>             www.delldatasafe.com uses an invalid security certificate.</p>
<p>The certificate is not trusted because the issuer certificate is unknown.</p>
<p>(Error code: sec_error_unknown_issuer)" title="delldatasafe" width="811" height="602" class="alignnone size-full wp-image-1002887" /></p>
<p>If Dell can&#8217;t even manage their public key certificates, how can I trust them to keep my data safe and secure?<br />
<span id="more-571"></span></p>
<h3 id="technicalContentHeading">Technical Details</h3>
<p id="technicalContentText">www.delldatasafe.com uses an invalid security certificate.<br />
The certificate is not trusted because the issuer certificate is unknown.<br />
(Error code: sec_error_unknown_issuer)</p>
]]></content:encoded>
			<wfw:commentRss>http://cafe.elharo.com/security/would-you-entrust-your-data-to-these-yokels/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Verifying SSH Host Fingerprints</title>
		<link>http://cafe.elharo.com/security/verifying-ssh-host-fingerprints/</link>
		<comments>http://cafe.elharo.com/security/verifying-ssh-host-fingerprints/#comments</comments>
		<pubDate>Tue, 10 Jan 2006 10:36:14 +0000</pubDate>
		<dc:creator>Elliotte Rusty Harold</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://minicafe.elharo.com/security/verifying-ssh-host-fingerprints/</guid>
		<description><![CDATA[If you use ssh you&#8217;re familiar with this message: ~$ ssh rich.elharo.com The authenticity of host 'rich.elharo.com (192.168.254.36)' can't be established. RSA key fingerprint is 5a:65:0f:5f:21:bb:fd:6a:5a:68:cd:62:58:5d:fb:9f. Are you sure you want to continue connecting (yes/no)? If you&#8217;re like me, you regularly just type yes and continue without much thought: Are you sure you want to [...]]]></description>
				<content:encoded><![CDATA[<p>If you use ssh you&#8217;re familiar with this message:</p>
<pre><samp>~$ ssh rich.elharo.com
The authenticity of host 'rich.elharo.com (192.168.254.36)' can't be established.
RSA key fingerprint is 5a:65:0f:5f:21:bb:fd:6a:5a:68:cd:62:58:5d:fb:9f.
Are you sure you want to continue connecting (yes/no)?
</samp></pre>
<p>If you&#8217;re like me, you regularly just type yes and continue without much thought:</p>
<div>
<samp>Are you sure you want to continue connecting (yes/no)? yes<br />
Warning: Permanently added &#8216;rich.elharo.com,192.168.254.36&#8242; (RSA) to the list of known hosts.<br />
</samp>
</div>
<p>But is that really safe? <span id="more-30"></span>Probably. The actual chance that a man-in-the-middle attack is being attempted is quite small. Even the FBI prefers breaking and entering to implementing a man-in-the-middle attack.  Possibly the NSA might try it&#8211;I don&#8217;t know&#8211;but most of the time when I&#8217;m warned that a key has changed it&#8217;s after the server hardware has been upgraded, the operating system reinstalled, or some other major change made. However, recently I was hit with this message when connecting between two of my own machines on which nothing appeared to have changed, so I decided to be more than usually paranoid and actually verify the communication. That&#8217;s when it hit me: how do you do this? Where can you find the remote system&#8217;s key to compare it to the one you see on the client?</p>
<p>First a little terminology. The actual server key is a long stream of letters and numbers. Here&#8217;s one key:</p>
<pre>AAAAB3NzaC1yc2EAAAABIwAAAIEAvVf59KxAmBqw
nuiam0wzBdNWzocaFTwQCLXpPlhfA1weLcfdSjzopGP
pXd1NoYKz2OAiWSKkg0nb9al1XDMPbJm54ZtG
eQMXnYusyDrlJrLfmhYVmcjFayrEaeFaBacBc6dA
O8AjGsXT0hA6BVruHgvN+Df5IFjX0Mq1fy0TjzM=</pre>
<p>That&#8217;s a little too long to compare by eye. Would you notice if the 44th character in that string were changed from an i to a j? or the 109th character were changed from the digit 1 to the letter l? Instead what&#8217;s compared is a shorter hash code of the actual key. This hash code is called the <dfn>fingerprint</dfn>. It looks like 5a:65:0f:5f:21:bb:fd:6a:5a:68:cd:62:58:5d:fb:9f. Those are hexadecimal digits and may sometimes be represented in upper case instead. For instance, 5A:65:0F:5F:21:BB:FD:6A:5A:68:CD:62:58:5D:FB:9F. That difference is not relevant. This still isn&#8217;t exactly a legible password, but it&#8217;s a little easier to read and verify with only a tiny chance of accidental collision.</p>
<p>Now if you&#8217;re connecting to a public server like IBiblio then they may publish their <a href="http://www.ibiblio.org/faq/?sid=2#1">fingerprint</a> somewhere. Make sure you get that fingerprint using https (and not self-signed https either) and you&#8217;re good to go. (IBiblio actually gets this wrong. They only publish their keys over unencrypted and vulnerable http.) However in my case I&#8217;m connecting to my own system. How do I tell what my system&#8217;s fingerprint is so I can compare it?</p>
<p>First thing you have to do is login from the system that you&#8217;re verifying. You can&#8217;t do the check across the network  or the potential man in the middle can still fool you. Once you&#8217;re on the system, assuming its a Unix system (including Mac OS X) you ssh to the localhost like so:</p>
<pre><samp>~$ ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 24:35:bb:55:6c:5f:2a:16:42:d7:b7:ba:9d:7e:d4:f6.
Are you sure you want to continue connecting (yes/no)? </samp></pre>
<p>There&#8217;s the local fingerprint. It should match what you saw when you conncted remotely. If it doesn&#8217;t, then you&#8217;ve got a problem. Alternately you can use <code>ssh-keygen -l -f</code> though you&#8217;ll need to know where your system stores its public key.  On Linux this is likely /etc/ssh/ssh_host_rsa_key.pub:</p>
<samp>$ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub<br />
1024 17:8b:03:34:fc:22:96:70:16:61:ae:53:01:71:a1:70 /etc/ssh/ssh_host_rsa_key.pub<br />
</samp>
<p>On Mac OS X 10.4 (and possibly other versions) the public key is hiding in <tt>/etc/ssh_host_rsa_key.pub</tt> instead:</p>
<samp>$ ssh-keygen -l -f /etc/ssh_host_rsa_key.pub<br />
1024 17:8b:03:34:fc:22:96:70:16:61:ae:53:01:71:a1:70 /etc/ssh_host_rsa_key.pub<br />
</samp>
<p>Of course, this only works if the server itself is locally safe; that is, if the attacker is really a man in the middle and not a man on one end or the other. As previously mentioned the FBI tends to attack on one end or the other by installing keylogging hardware to collect passwords rather than by interposing themselves between two systems.  However if you&#8217;ve already been compromised in that way, then you&#8217;ve got bigger problems to deal with; and ssh encryption isn&#8217;t going to fix them.</p>
<p>P.S. I still don&#8217;t know why my PowerBook&#8217;s SSH key changed, but after repeated verification it seems that there&#8217;s no man in the middle. My LAN connection seems secure for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://cafe.elharo.com/security/verifying-ssh-host-fingerprints/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
