<?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>langui.sh &#187; x509</title>
	<atom:link href="http://langui.sh/tag/x509/feed/" rel="self" type="application/rss+xml" />
	<link>http://langui.sh</link>
	<description>Fun hacks, WP plugins, photography, and PKI junk.  Languishing since 2008.</description>
	<lastBuildDate>Tue, 20 Jul 2010 22:12:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Check If A Certificate &amp; Private Key Match</title>
		<link>http://langui.sh/2009/10/05/check-if-a-certificate-private-key-match/</link>
		<comments>http://langui.sh/2009/10/05/check-if-a-certificate-private-key-match/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 14:52:30 +0000</pubDate>
		<dc:creator>Paul Kehrer</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[crypto]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[x509]]></category>

		<guid isPermaLink="false">http://langui.sh/?p=678</guid>
		<description><![CDATA[Check if an SSL certificate and private key match in two simple commands. The OpenSSL commands below will require you to replace &#60;file&#62; with your file&#8217;s name. For your SSL certificate:1 openssl x509 -noout -modulus -in &#60;file&#62; &#124; md5sum For your RSA private key: openssl rsa -noout -modulus -in &#60;file&#62; &#124; md5sum The output of [...]]]></description>
			<content:encoded><![CDATA[<p>Check if an SSL certificate and private key match in two simple commands.  The OpenSSL commands below will require you to replace &lt;file&gt; with your file&#8217;s name.</p>
<p>For your SSL certificate:<sup class='footnote'><a href='#fn-678-1' id='fnref-678-1'>1</a></sup></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">openssl x509 <span style="color: #660033;">-noout</span> <span style="color: #660033;">-modulus</span> <span style="color: #660033;">-in</span> <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">|</span> md5sum</pre></div></div>

<p>For your RSA private key:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">openssl rsa <span style="color: #660033;">-noout</span> <span style="color: #660033;">-modulus</span> <span style="color: #660033;">-in</span> <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">|</span> md5sum</pre></div></div>

<p>The output of these commands should be identical.  If it isn&#8217;t, your keys do not match. </p>
<div class='footnotes'>
<div class='footnotedivider'></div>
<ol>
<li id='fn-678-1'>The pipe to md5sum is solely to make the output shorter and easier to visually compare <span class='footnotereverse'><a href='#fnref-678-1'>&#8617;</a></span></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://langui.sh/2009/10/05/check-if-a-certificate-private-key-match/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
