<?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>JasonSamuel.com &#187; OpenSSL</title>
	<atom:link href="http://www.jasonsamuel.com/tag/openssl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonsamuel.com</link>
	<description>Cool stuff I see in the IT world</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:05:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Verifying that SSLv2 and weak ciphers are disabled for PCI compliance</title>
		<link>http://www.jasonsamuel.com/2010/08/09/verifying-that-sslv2-and-weak-ciphers-are-disabled-for-pci-compliance/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=verifying-that-sslv2-and-weak-ciphers-are-disabled-for-pci-compliance</link>
		<comments>http://www.jasonsamuel.com/2010/08/09/verifying-that-sslv2-and-weak-ciphers-are-disabled-for-pci-compliance/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 21:44:13 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Citrix NetScaler]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Oracle iPlanet]]></category>
		<category><![CDATA[bigip]]></category>
		<category><![CDATA[iPlanet]]></category>
		<category><![CDATA[netscaler]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[SSL certificate]]></category>
		<category><![CDATA[ssldigger]]></category>
		<category><![CDATA[sslv2]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=637</guid>
		<description><![CDATA[There are 4 easy ways to check that SSLv2 and weak ciphers are disabled on your web servers and appliances. SSLv2 is deprecated and should never be used. You will definitely need to verify these are disabled for PCI compliance and SOX compliance. The instructions below apply to check SSLv2 on any web server (IIS, [...]<p><a href="http://www.jasonsamuel.com/2010/08/09/verifying-that-sslv2-and-weak-ciphers-are-disabled-for-pci-compliance/">Verifying that SSLv2 and weak ciphers are disabled for PCI compliance</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>

More of my posts you might like:<ol>
<li><a href='http://www.jasonsamuel.com/2010/03/11/how-to-solve-the-vmware-pci-to-pci-bridge-detected-install-loop/' rel='bookmark' title='How to solve the VMware &#8220;PCI to PCI bridge detected&#8221; install loop'>How to solve the VMware &#8220;PCI to PCI bridge detected&#8221; install loop</a></li>
<li><a href='http://www.jasonsamuel.com/2010/01/07/how-to-convert-an-ssl-cert-to-a-pem-for-installation-on-citrix-and-cisco-appliances/' rel='bookmark' title='How to convert an SSL cert to a .pem for installation on Citrix and Cisco appliances'>How to convert an SSL cert to a .pem for installation on Citrix and Cisco appliances</a></li>
<li><a href='http://www.jasonsamuel.com/2010/07/16/getting-around-netscaler-client-ip-issues-without-having-to-use-usip/' rel='bookmark' title='Getting around Netscaler Client IP issues without having to use USIP'>Getting around Netscaler Client IP issues without having to use USIP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There are 4 easy ways to check that SSLv2 and weak ciphers are disabled on your web servers and appliances.  SSLv2 is deprecated and should never be used.  You will definitely need to verify these are disabled for PCI compliance and SOX compliance.  The instructions below apply to check SSLv2 on any web server (IIS, Apache, iPlanet, etc.) or any traffic or load balancing appliance (Citrix Netscaler, F5 BigIP, etc.).</p>
<p><strong>1. SSLDigger </strong>- Download it here <a href="http://www.foundstone.com/us/resources/proddesc/ssldigger.htm">http://www.foundstone.com/us/resources/proddesc/ssldigger.htm</a>.  It&#8217;s a great little tool that first tests for SSLv2, then gives you the option to test for weak ciphers one by one, then spits our a nice little HTML report of the findings.  You can even create a .txt file with all your URLs to test and perform testing in bulk.  This is wonderful when you have many domains to test and need to give a report to management quickly.</p>
<p>Checking the Google.com SSL cert (click to enlarge):</p>
<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/08/ssldigger_1.gif"><img src="http://www.jasonsamuel.com/wp-content/uploads/2010/08/ssldigger_1-300x232.gif" alt="" title="ssldigger_1" width="300" height="232" class="aligncenter size-medium wp-image-653" /></a></p>
<p>Checking for weak ciphers systematically (click to enlarge):</p>
<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/08/ssldigger_2.gif"></p>
<p>  <img src="http://www.jasonsamuel.com/wp-content/uploads/2010/08/ssldigger_2-300x188.gif" alt="" title="ssldigger_2" width="300" height="188" class="aligncenter size-medium wp-image-654" /></a></p>
<p>HTML report (click to enlarge):</p>
<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/08/ssldigger_3.gif"></p>
<p>  <img src="http://www.jasonsamuel.com/wp-content/uploads/2010/08/ssldigger_3-127x300.gif" alt="" title="ssldigger_3" width="127" height="300" class="aligncenter size-medium wp-image-655" /></a></p>
<p><strong>2. OpenSSL</strong> &#8211; The old favorite.  Type the following to connect to your web server or appliance over SSLv2:</p>
<p><code>openssl s_client -connect www.yourdomain.com:443 -ssl2</code></p>
<p>It should connect giving you a CONNECTED(000007C0) message but then immediately fail and display an error message like one of the following:</p>
<p>419:error:1407F0E5:SSL routines:SSL2_WRITE:ssl handshake failure:s2_pkt.c:428:<br />
420:error:1406D0B8:SSL routines:GET_SERVER_HELLO:no cipher list:s2_clnt.c:450:<br />
10076:error:1407F0E5:SSL routines:SSL2_WRITE:ssl handshake failure:. \ssl\s2_pkt.c:428:<br />
write:errno=548965:error:1407F0E5:SSL routines:SSL2_WRITE:ssl handshake failure:s2_pkt.c:428:<br />
write:errno=10054</p>
<p>SSL handshake failures and connection resets (errno=10054) are completely normal if SSLv2 is disabled.  The specific error message you get will depend on exactly what behavior your web server or appliance is configured to do when a client connects using it. </p>
<p><strong><font color="red">Example of SSLv2 disabled:</font></strong></p>
<p>
  <a href="http://www.jasonsamuel.com/wp-content/uploads/2010/08/sslv2_disabled.gif"><img src="http://www.jasonsamuel.com/wp-content/uploads/2010/08/sslv2_disabled.gif" alt="" title="sslv2_disabled" width="669" height="338" class="aligncenter size-full wp-image-643" /></a></p>
<p>  <strong><font color="red">Example of SSLv2 enabled (VERY VERY BAD!):</font></strong>  </p>
<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/08/sslv2_enabled1.gif"><img src="http://www.jasonsamuel.com/wp-content/uploads/2010/08/sslv2_enabled1.gif" alt="" title="sslv2_enabled" width="669" height="996" class="aligncenter size-full wp-image-663" /></a> </p>
<p><strong>3. Nessus</strong> &#8211; Download it here <a href="http://www.nessus.org">http://www.nessus.org</a> and use the Home Feed and setup a new scan using the SSL Anonymous Cipher Suites Supported and SSL Version 2 (v2) Protocol Detection plugins.  Please make sure to disable all the other plugins, you don&#8217;t want all that hitting your server.  Just these 2 are sufficient.  Then check the Reports and see if it is reporting SSLv2 as a vulnerability.  </p>
<p><strong>4. External SSL checkers</strong> &#8211; Running nice little tools like the above three is nice to check your servers when you are internal but if you want to see what 3rd parties are seeing externally, use one of these online SSL checkers to test:  </p>
<p><a href="http://foundeo.com/products/iis-weak-ssl-ciphers/test.cfm">http://foundeo.com/products/iis-weak-ssl-ciphers/test.cfm</a>  <br />
<a href="http://www.dnsstuff.com/tools/">http://www.dnsstuff.com/tools/</a></p>
<p><a href="http://www.jasonsamuel.com/2010/08/09/verifying-that-sslv2-and-weak-ciphers-are-disabled-for-pci-compliance/">Verifying that SSLv2 and weak ciphers are disabled for PCI compliance</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
<p>More of my posts you might like:<ol>
<li><a href='http://www.jasonsamuel.com/2010/03/11/how-to-solve-the-vmware-pci-to-pci-bridge-detected-install-loop/' rel='bookmark' title='How to solve the VMware &#8220;PCI to PCI bridge detected&#8221; install loop'>How to solve the VMware &#8220;PCI to PCI bridge detected&#8221; install loop</a></li>
<li><a href='http://www.jasonsamuel.com/2010/01/07/how-to-convert-an-ssl-cert-to-a-pem-for-installation-on-citrix-and-cisco-appliances/' rel='bookmark' title='How to convert an SSL cert to a .pem for installation on Citrix and Cisco appliances'>How to convert an SSL cert to a .pem for installation on Citrix and Cisco appliances</a></li>
<li><a href='http://www.jasonsamuel.com/2010/07/16/getting-around-netscaler-client-ip-issues-without-having-to-use-usip/' rel='bookmark' title='Getting around Netscaler Client IP issues without having to use USIP'>Getting around Netscaler Client IP issues without having to use USIP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2010/08/09/verifying-that-sslv2-and-weak-ciphers-are-disabled-for-pci-compliance/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>A quick way to troubleshoot SSL chain issues using OpenSSL</title>
		<link>http://www.jasonsamuel.com/2010/01/14/a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl</link>
		<comments>http://www.jasonsamuel.com/2010/01/14/a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 17:07:48 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[ssl certificates]]></category>
		<category><![CDATA[ssl chain]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=340</guid>
		<description><![CDATA[You can use OpenSSL and run this command: openssl.exe s_client -connect www.mysite.com:443 which will use a generic SSL/TLS client to connect to your site and give you a ton of diagnostic info.  You can see your entire SSL cert chain, the SSL handshake, SSL session info, etc.  Here&#8217;s a full list of switches you can [...]<p><a href="http://www.jasonsamuel.com/2010/01/14/a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl/">A quick way to troubleshoot SSL chain issues using OpenSSL</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>

More of my posts you might like:<ol>
<li><a href='http://www.jasonsamuel.com/2009/03/12/ssl-certificate-chains-explained/' rel='bookmark' title='SSL certificate chains explained'>SSL certificate chains explained</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>You can use OpenSSL and run this command:</p>
<blockquote><p>openssl.exe s_client -connect www.mysite.com:443</p></blockquote>
<p>which will use a generic SSL/TLS client to connect to your site and give you a ton of diagnostic info.  You can see your entire SSL cert chain, the SSL handshake, SSL session info, etc.  Here&#8217;s a full list of switches you can use with it:  <a href="http://www.openssl.org/docs/apps/s_client.html">http://www.openssl.org/docs/apps/s_client.html</a></p>
<p>And here&#8217;s a great online tool to graphically verify your SSL chain is intact:  <a href="http://www.sslshopper.com/ssl-checker.html">http://www.sslshopper.com/ssl-checker.html</a></p>
<p><a href="http://www.jasonsamuel.com/2010/01/14/a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl/">A quick way to troubleshoot SSL chain issues using OpenSSL</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
<p>More of my posts you might like:<ol>
<li><a href='http://www.jasonsamuel.com/2009/03/12/ssl-certificate-chains-explained/' rel='bookmark' title='SSL certificate chains explained'>SSL certificate chains explained</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2010/01/14/a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to convert an SSL cert to a .pem for installation on Citrix and Cisco appliances</title>
		<link>http://www.jasonsamuel.com/2010/01/07/how-to-convert-an-ssl-cert-to-a-pem-for-installation-on-citrix-and-cisco-appliances/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-convert-an-ssl-cert-to-a-pem-for-installation-on-citrix-and-cisco-appliances</link>
		<comments>http://www.jasonsamuel.com/2010/01/07/how-to-convert-an-ssl-cert-to-a-pem-for-installation-on-citrix-and-cisco-appliances/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 16:35:58 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[Cisco IronPort]]></category>
		<category><![CDATA[Citrix NetScaler]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[.cer]]></category>
		<category><![CDATA[.pem]]></category>
		<category><![CDATA[.pfx]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[pkcs12]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[SSL certificate]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=302</guid>
		<description><![CDATA[Often times you might have to add an SSL cert to a Cisco or Citrix appliance (like a Netscaler) but it only accepts the SSL cert and private key in a certain format.  Your CA (certificate authority) will issue the SSL cert to you as a .crt.  From there, you need to package the cert [...]<p><a href="http://www.jasonsamuel.com/2010/01/07/how-to-convert-an-ssl-cert-to-a-pem-for-installation-on-citrix-and-cisco-appliances/">How to convert an SSL cert to a .pem for installation on Citrix and Cisco appliances</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/01/2.gif"></a>Often times you might have to add an SSL cert to a Cisco or Citrix appliance (like a Netscaler) but it only accepts the SSL cert and private key in a certain format.  Your CA (certificate authority) will issue the SSL cert to you as a .crt.  From there, you need to package the cert with the private key and in the format your appliance requires.  There are different ways to do this and one easy way I like is using IIS and OpenSSL which is a free open source tool and can be downloaded here:  <a href="http://www.openssl.org" target="_blank">http://www.openssl.org</a></p>
<p>1. Create a temporary site in IIS and generate a CSR.  Make sure the CN (common name) you enter matches whatever appliance you are trying to generate it for exmp:  wireless.mycompany.com</p>
<p>2.  Submit the CSR to your CA such as Verisign, GoDaddy, Network Solutions, etc. and wait for them to validate and issue your cert.</p>
<p>3. Get the .crt from the CA once they issue it and convert it to .cer.  Just open the .crt by double clicking on it and and save it as .cer using the export wizard.  This is necessary since IIS does not accept .crt.</p>
<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/01/1.gif"><img class="alignnone size-medium wp-image-307" title="1" src="http://www.jasonsamuel.com/wp-content/uploads/2010/01/1-254x300.gif" alt="" width="254" height="300" /></a> <a href="http://www.jasonsamuel.com/wp-content/uploads/2010/01/2.gif"><img title="2" src="http://www.jasonsamuel.com/wp-content/uploads/2010/01/2-254x300.gif" alt="" width="254" height="300" /></a><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/01/3.gif"> <img class="alignnone size-medium wp-image-310" title="3" src="http://www.jasonsamuel.com/wp-content/uploads/2010/01/3-300x234.gif" alt="" width="300" height="234" /></a> <a href="http://www.jasonsamuel.com/wp-content/uploads/2010/01/4.gif"><img class="alignnone size-medium wp-image-311" title="4" src="http://www.jasonsamuel.com/wp-content/uploads/2010/01/4-300x234.gif" alt="" width="300" height="234" /></a></p>
<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/01/5.gif"><img class="alignnone size-medium wp-image-312" title="5" src="http://www.jasonsamuel.com/wp-content/uploads/2010/01/5-300x234.gif" alt="" width="300" height="234" /></a> <a href="http://www.jasonsamuel.com/wp-content/uploads/2010/01/6.gif"><img class="alignnone size-medium wp-image-313" title="6" src="http://www.jasonsamuel.com/wp-content/uploads/2010/01/6-300x234.gif" alt="" width="300" height="234" /></a></p>
<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/01/7.gif"><img class="alignnone size-medium wp-image-314" title="7" src="http://www.jasonsamuel.com/wp-content/uploads/2010/01/7-300x234.gif" alt="" width="300" height="234" /></a></p>
<p>4. Install the .cer in IIS using the Web Server Certificate Wizard where you originally generated the CSR.  Just process the pending request to install it.</p>
<p>5. View the cert in IIS and export it with the private key in pkcs12 (.pfx) format.  Just set the password as “password” since you will be deleting it after conversion is complete later.</p>
<p>6. Go to the directory where OpenSSL.exe is and type in the following to convert the .pfx to a .pem</p>
<blockquote><p>openssl pkcs12 -in nameofcert.pfx -out nameofcert.pem</p></blockquote>
<p>7. Type the “password” when prompted for the pass phrase.</p>
<p>8. Install the .pem on the appliance and it should work</p>
<p><strong><span style="color: #ff0000;">IMPORTANT NOTE:</span></strong></p>
<p>If you are doing it for some appliances like a Cisco IronPort, you need to add the nodes switch when creating the .pem:</p>
<blockquote><p>openssl pkcs12 -in nameofcert.pfx -out nameofcert.pem –nodes</p></blockquote>
<p>The –nodes switch ensures that the key inside the .pem is left unencrypted.  If you attempt to install a .pem created without the -nodes switch, the appliance will take the cert but will not accept the private key since it cannot read it in an encrypted state.</p>
<p><a href="http://www.jasonsamuel.com/2010/01/07/how-to-convert-an-ssl-cert-to-a-pem-for-installation-on-citrix-and-cisco-appliances/">How to convert an SSL cert to a .pem for installation on Citrix and Cisco appliances</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2010/01/07/how-to-convert-an-ssl-cert-to-a-pem-for-installation-on-citrix-and-cisco-appliances/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.jasonsamuel.com @ 2012-02-06 17:18:39 -->
