<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!--Generated by Squarespace Site Server v5.11.81 (http://www.squarespace.com/) on Tue, 22 May 2012 21:29:22 GMT--><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Ruby on Rails Security Project</title><link>http://www.rorsecurity.info/journal/</link><description /><lastBuildDate>Sat, 19 Feb 2011 15:15:25 +0000</lastBuildDate><copyright /><language>en-US</language><generator>Squarespace Site Server v5.11.81 (http://www.squarespace.com/)</generator><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/RubyOnRailsSecurity" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="rubyonrailssecurity" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">RubyOnRailsSecurity</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item><title>Two MRI security vulnerabilities in Ruby 1.8 and 1.9</title><dc:creator>Heiko</dc:creator><pubDate>Sat, 19 Feb 2011 15:01:18 +0000</pubDate><link>http://www.rorsecurity.info/journal/2011/2/19/two-mri-security-vulnerabilities-in-ruby-18-and-19.html</link><guid isPermaLink="false">280802:2845483:10535574</guid><description>&lt;p&gt;Two security fixes have been released for Ruby today. The first vulnerability affects the FileUtils.remove_entry_secure method which allowed local users to delete arbitrary files and directories. The second one affects the $SAFE level.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;FileUtils.remove_entry_secure&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This affects Ruby versions 1.8.6 (420), 1.8.7 (330), 1.9.1 (430), 1.9.2 (136) and the development versions. The problem has been fixed and is &lt;a href="http://www.ruby-lang.org/en/news/2011/02/18/fileutils-is-vulnerable-to-symlink-race-attacks/" target="_blank"&gt;available for download&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;$SAFE vulnerability&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This affects only 1.8 Ruby versions. Exception#to_s method can be used to trick $SAFE check, which makes a untrusted codes to modify arbitrary strings. The &lt;a href="http://www.ruby-doc.org/docs/ProgrammingRuby/html/taint.html" target="_blank"&gt;variable &lt;code&gt;$SAFE&lt;/code&gt;&lt;/a&gt; determines Ruby's level of paranoia. This problem &lt;a href="http://www.ruby-lang.org/en/news/2011/02/18/exception-methods-can-bypass-safe/" target="_blank"&gt;has also been fixed&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RubyOnRailsSecurity/~4/G57xNShDJmc" height="1" width="1"/&gt;</description><wfw:commentRss>http://www.rorsecurity.info/journal/rss-comments-entry-10535574.xml</wfw:commentRss></item><item><title>Several vulnerabilities in Rails 2 &amp; 3</title><dc:creator>Heiko</dc:creator><pubDate>Wed, 09 Feb 2011 08:28:00 +0000</pubDate><link>http://www.rorsecurity.info/journal/2011/2/9/several-vulnerabilities-in-rails-2-3.html</link><guid isPermaLink="false">280802:2845483:10427451</guid><description>&lt;p&gt;Two new Ruby on Rails versions have been released yesterday because of 4 security vulnerabilities in Rails.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://groups.google.com/group/rubyonrails-security/browse_thread/thread/f02a48ede8315f81" target="_blank"&gt;Potential XSS Problem with mail_to :encode =&amp;gt; :javascript&lt;/a&gt;&lt;br /&gt;Versions Affected:&amp;nbsp; All.&lt;br /&gt;Not affected:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applications which don't use :encode =&amp;gt; :javascript&lt;br /&gt;Fixed Versions:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.0.4, 2.3.11&lt;/p&gt;
&lt;p&gt;&lt;a href="http://groups.google.com/group/rubyonrails-security/browse_thread/thread/2d95a3cc23e03665" target="_blank"&gt;CSRF Protection Bypass in Ruby on Rails&lt;/a&gt;&lt;br /&gt;Versions Affected:&amp;nbsp; 2.1.0 and above&lt;br /&gt;Not affected:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Applications which don't use the built in CSRF protection.&lt;br /&gt;Fixed Versions:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.0.4, 2.3.11&lt;br /&gt;&lt;strong&gt;Do read the instructions carefully because it will affect your session and may require additional steps other than just updating. &lt;/strong&gt;&lt;a href="http://weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails" target="_blank"&gt;More here&lt;/a&gt; and in the &lt;a href="http://guides.rubyonrails.org/security.html#cross-site-request-forgery-csrf" target="_blank"&gt;Rails Security Guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://groups.google.com/group/rubyonrails-security/browse_thread/thread/b658902cf6bf4eed" target="_blank"&gt;Potential SQL Injection in Rails 3.0.x&lt;/a&gt;&lt;br /&gt;Versions Affected:&amp;nbsp; 3.0.0-3.0.3&lt;br /&gt;Not affected:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Releases before 3.0.0&lt;br /&gt;Fixed Versions:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.0.4&lt;br /&gt;Unfortunately this has been fixed in &lt;a href="http://www.rorsecurity.info/journal/2008/9/8/sql-injection-issue-in-limit-and-offset-parameter.html" target="_blank"&gt;earlier versions&lt;/a&gt; already.&lt;/p&gt;
&lt;div class="secttl lf"&gt;&lt;span id="thread_subject_site"&gt; &lt;a href="http://groups.google.com/group/rubyonrails-security/browse_thread/thread/362f1fbc1761b336" target="_blank"&gt;Filter Problems on Case-Insensitive Filesystem&lt;/a&gt; &lt;/span&gt;&lt;/div&gt;
&lt;p&gt;Versions Affected:&amp;nbsp; 3.0.0-3.0.3&lt;br /&gt;Not affected:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.3.x versions and all earlier versions. Applications deployed on case-sensitive filesystems.&lt;br /&gt;Fixed Versions:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.0.4&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RubyOnRailsSecurity/~4/Y-kkjh0ZmCI" height="1" width="1"/&gt;</description><wfw:commentRss>http://www.rorsecurity.info/journal/rss-comments-entry-10427451.xml</wfw:commentRss></item><item><title>Vulnerability in the Mail gem affecting Rails 3.0.x applications</title><dc:creator>Heiko</dc:creator><pubDate>Wed, 26 Jan 2011 20:11:32 +0000</pubDate><link>http://www.rorsecurity.info/journal/2011/1/26/vulnerability-in-the-mail-gem-affecting-rails-30x-applicatio.html</link><guid isPermaLink="false">280802:2845483:10236920</guid><description>&lt;p&gt;As the Ruby on &lt;a href="http://groups.google.com/group/rubyonrails-security/browse_thread/thread/5a9e44a4bf940326?hl=en"&gt;Rails Security group&lt;/a&gt; announced today, there is a vulnerability in the sendmail delivery agent of the Mail gem that could allow an attacker to pass arbitrary commands to the system.&lt;/p&gt;
&lt;p&gt;Versions Affected: Versions 2.2.14 or earlier &lt;br /&gt; Not affected:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Any application not using sendmail delivery &lt;br /&gt; Fixed Versions: &amp;nbsp; &amp;nbsp; 2.2.15 or later&lt;/p&gt;
&lt;p&gt;More information in the &lt;a href="http://groups.google.com/group/mail-ruby/browse_thread/thread/e93bbd05706478dd?pli=1"&gt;original post&lt;/a&gt; in Ruby's mailer Group.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RubyOnRailsSecurity/~4/quwZsJLXNC8" height="1" width="1"/&gt;</description><wfw:commentRss>http://www.rorsecurity.info/journal/rss-comments-entry-10236920.xml</wfw:commentRss></item><item><title>Ruby on Rails 3 Security Updated</title><category>cross-site scripting</category><category>rails</category><category>ruby on rails</category><category>security</category><category>sql injection</category><category>sqli</category><category>web security</category><category>xss</category><dc:creator>Heiko</dc:creator><pubDate>Tue, 08 Jun 2010 12:13:13 +0000</pubDate><link>http://www.rorsecurity.info/journal/2010/6/8/ruby-on-rails-3-security-updated.html</link><guid isPermaLink="false">280802:2845483:7899950</guid><description>&lt;p&gt;I hold a talk about Rails 3 Security at the &lt;a href="http://it-republik.de/conferences/railswaycon2010/"&gt;RailsWayCon10&lt;/a&gt;. It is about the new Cross-Site Scription protection in Rails 3, what is going to change in ActiveRecord and other Rails Security topics. You can find the presentation &lt;a href="http://www.slideshare.net/heikowebers/ruby-on-rails-security-updated-rails-3-at-railswaycon"&gt;at Slideshare&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;div style="width:425px" id="__ss_4438876"&gt;&lt;strong style="display:block;margin:12px 0 4px"&gt;&lt;a href="http://www.slideshare.net/heikowebers/ruby-on-rails-security-updated-rails-3-at-railswaycon" title="Ruby on Rails Security Updated (Rails 3) at RailsWayCon"&gt;Ruby on Rails Security Updated (Rails 3) at RailsWayCon&lt;/a&gt;&lt;/strong&gt;&lt;object id="__sse4438876" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=railswaycon10presentation-100608070817-phpapp02&amp;rel=0&amp;stripped_title=ruby-on-rails-security-updated-rails-3-at-railswaycon" /&gt;&lt;param name="allowFullScreen" value="true"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;embed name="__sse4438876" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=railswaycon10presentation-100608070817-phpapp02&amp;rel=0&amp;stripped_title=ruby-on-rails-security-updated-rails-3-at-railswaycon" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="padding:5px 0 12px"&gt;View more &lt;a href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a href="http://www.slideshare.net/heikowebers"&gt;heikowebers&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RubyOnRailsSecurity/~4/tW3HJ0CB6wk" height="1" width="1"/&gt;</description><wfw:commentRss>http://www.rorsecurity.info/journal/rss-comments-entry-7899950.xml</wfw:commentRss></item><item><title>XSS Weakness in strip_tags and some notes on parsing HTML/XML</title><dc:creator>Heiko</dc:creator><pubDate>Fri, 27 Nov 2009 08:30:35 +0000</pubDate><link>http://www.rorsecurity.info/journal/2009/11/27/xss-weakness-in-strip_tags-and-some-notes-on-parsing-htmlxml.html</link><guid isPermaLink="false">280802:2845483:5926759</guid><description>&lt;p&gt;There is another &lt;a href="http://guides.rubyonrails.org/security.html#cross-site-scripting-xss" target="_blank"&gt;Cross-Site Scripting&lt;/a&gt; (XSS) &lt;a href="http://groups.google.com/group/rubyonrails-security/browse_thread/thread/4d4f71f2aef4c0ab?hl=en" target="_blank"&gt;Weakness&lt;/a&gt; in the Rails method strip_tag(). The problem was found in the HTML::Tokenizer which has bugs when parsing non-printable ASCII characters.&lt;/p&gt;
&lt;p&gt;According to the original post, this has been fixed in Rails 2.3.5 and there is a patch for the 2.2. branch. Earlier versions are unsupported. Upgrade to a newer version if you make use of this method.&lt;/p&gt;
&lt;p&gt;The workaround is this:&lt;/p&gt;
&lt;p&gt;Users using strip_tags can pass the resulting output to the regular escaping functionality:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;lt;%= h(strip_tag(...)) %&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;However&lt;/strong&gt;, this is not how it should be. The strip_tags() method should work correctly. The workaround does work, but strip_tags() is based on HTML::Tokenizer which uses a very naive approach to parsing HTML code. It is based on regular expressions to analyze the code. For serious/enterprise implementations, you should not use an error-prone parser library.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The REXML is a little better, but not very fast for large amounts of data. It has some bugs and it's not 100% standard compliant. For larger amounts of data, it may even be used to use a pull parser: REXML::Parsers::PullParser. Some people have successfully parsed HTML with it.&lt;/li&gt;
&lt;li&gt;And there is &lt;a href="http://libxml.rubyforge.org/" target="_blank"&gt;libxml&lt;/a&gt;, which is a real parser, now with ruby bindings. We haven't used it with (X)HTML, though. It has a pull parser too, and its quite like the REXML pull parser. LibXML is an extensive C-library which might not available on exotic Linux-derivates or Windows. &lt;a href="http://nokogiri.rubyforge.org/nokogiri/" target="_blank"&gt;Nokogiri&lt;/a&gt; is also based on LibXML.&lt;/li&gt;
&lt;li&gt;Update: If you're using JRuby, you can use tried and tested Java XHTML/XML parsers. For example Apache Xerces or the pull parser &lt;a href="http://woodstox.codehaus.org/" target="_blank"&gt;Woodstox&lt;/a&gt; which supports "almost well-formed" documents (like legacy (X)HTML content).&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/RubyOnRailsSecurity/~4/roTL0y4Gszs" height="1" width="1"/&gt;</description><wfw:commentRss>http://www.rorsecurity.info/journal/rss-comments-entry-5926759.xml</wfw:commentRss></item><item><title>Two vulnerabilities fixed in Rails 2.3.4</title><dc:creator>Heiko</dc:creator><pubDate>Fri, 04 Sep 2009 11:11:49 +0000</pubDate><link>http://www.rorsecurity.info/journal/2009/9/4/two-vulnerabilities-fixed-in-rails-234.html</link><guid isPermaLink="false">280802:2845483:5081551</guid><description>&lt;p&gt;Rails version 2.3.4 has been released to fix two vulnerabilities.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A &lt;a href="http://weblog.rubyonrails.org/2009/9/4/timing-weakness-in-ruby-on-rails"&gt;timing weakness&lt;/a&gt; in the ClientCookieStore. Rails version 2.1.0 and all subsequent versions are affected. Detailed information c&lt;a href="http://codahale.com/a-lesson-in-timing-attacks/"&gt;an be found here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;And a &lt;a href="http://weblog.rubyonrails.org/2009/9/4/xss-vulnerability-in-ruby-on-rails"&gt;XSS vulnerability&lt;/a&gt; in the way Rails handles Unicode. This affects all versions in the Rails 2 branch, but not applications running with Ruby 1.9.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Upgrade to &lt;a href="http://weblog.rubyonrails.org/2009/9/4/ruby-on-rails-2-3-4"&gt;version 2.3.4 now&lt;/a&gt;, or apply a patch (available on the pages linked above).&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RubyOnRailsSecurity/~4/NRRAE3B4P_E" height="1" width="1"/&gt;</description><wfw:commentRss>http://www.rorsecurity.info/journal/rss-comments-entry-5081551.xml</wfw:commentRss></item><item><title>DoS vulnerability in BigDecimal</title><dc:creator>Heiko</dc:creator><pubDate>Wed, 10 Jun 2009 07:40:00 +0000</pubDate><link>http://www.rorsecurity.info/journal/2009/6/10/dos-vulnerability-in-bigdecimal.html</link><guid isPermaLink="false">280802:2845483:4254255</guid><description>&lt;p&gt;A Denial of Service (DoS) vulnerability was found in the BigDecimal standard Ruby library. An attacker could cause a segmentation fault and crash the Ruby interpreter. This is due to the BigDecimal method mishandling certain large values. Almost every Rails application is vulnerable to this because ActiveRecord relies on this method.&lt;/p&gt;
&lt;p&gt;You are advised &lt;a href="http://www.ruby-lang.org/en/news/2009/06/09/dos-vulnerability-in-bigdecimal/"&gt;to update your Ruby&lt;/a&gt; installation. There is a temporary fix on &lt;a href="http://github.com/NZKoz/bigdecimal-segfault-fix/tree/master"&gt;Github&lt;/a&gt;. This fix breaks valid formats supported by BigDecimal, so you are advised to plan migrating to a new Ruby version.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RubyOnRailsSecurity/~4/i2yed6L8Onw" height="1" width="1"/&gt;</description><wfw:commentRss>http://www.rorsecurity.info/journal/rss-comments-entry-4254255.xml</wfw:commentRss></item><item><title>Vulnerability in Rails 2.3 HTTP Authentication</title><dc:creator>Heiko</dc:creator><pubDate>Thu, 04 Jun 2009 12:57:15 +0000</pubDate><link>http://www.rorsecurity.info/journal/2009/6/4/vulnerability-in-rails-23-http-authentication.html</link><guid isPermaLink="false">280802:2845483:4188096</guid><description>&lt;p&gt;There has been a security vulnerability in Rails in the HTTP digest authentication in Rails 2.3. That way someone can authenticate without any user name and password. The HTTP &lt;span style="text-decoration: underline;"&gt;basic&lt;/span&gt; authentication seems to be not vulnerable to this problem.&lt;/p&gt;
&lt;p&gt;The problem arises in the authenticate_or_request_with_http_digest method which will proceed even if the user name check returns nil.&lt;/p&gt;
&lt;p&gt;You can find out more, including countermeasures at &lt;a href="http://n8.tumblr.com/post/117477059/security-hole-found-in-rails-2-3s" target="_blank"&gt;Nate's blog&lt;/a&gt; and the &lt;a href="http://weblog.rubyonrails.org/2009/6/3/security-problem-with-authenticate_with_http_digest" target="_blank"&gt;Rails weblog&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RubyOnRailsSecurity/~4/6AKsz5cDxC8" height="1" width="1"/&gt;</description><wfw:commentRss>http://www.rorsecurity.info/journal/rss-comments-entry-4188096.xml</wfw:commentRss></item><item><title>Hacking Ruby on Rails @ RailsWayCon09</title><dc:creator>Heiko</dc:creator><pubDate>Fri, 29 May 2009 12:14:24 +0000</pubDate><link>http://www.rorsecurity.info/journal/2009/5/29/hacking-ruby-on-rails-railswaycon09.html</link><guid isPermaLink="false">280802:2845483:4121012</guid><description>&lt;p&gt;I'm back from the nice RailsWayCon(ference) in Berlin. I did a session on Ruby on Rails Security, check out the slides:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div id="__ss_1505963" style="width: 425px; text-align: left;"&gt;&lt;a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="Hacking Ruby on Rails at Railswaycon09" href="http://www.slideshare.net/heikowebers/hacking-ruby-on-rails-at-railswaycon09-1505963?type=powerpoint"&gt;Hacking Ruby on Rails at Railswaycon09&lt;/a&gt;&lt;object style="margin:0px" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=railswaycon09presentation-090529071741-phpapp01&amp;rel=0&amp;stripped_title=hacking-ruby-on-rails-at-railswaycon09-1505963" /&gt;&lt;param name="allowFullScreen" value="true"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=railswaycon09presentation-090529071741-phpapp01&amp;rel=0&amp;stripped_title=hacking-ruby-on-rails-at-railswaycon09-1505963" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;
&lt;div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RubyOnRailsSecurity/~4/ofx0RYd5f00" height="1" width="1"/&gt;</description><wfw:commentRss>http://www.rorsecurity.info/journal/rss-comments-entry-4121012.xml</wfw:commentRss></item><item><title>Securing A Website With Client SSL Certificates</title><dc:creator>Heiko</dc:creator><pubDate>Tue, 12 May 2009 12:57:51 +0000</pubDate><link>http://www.rorsecurity.info/journal/2009/5/12/securing-a-website-with-client-ssl-certificates.html</link><guid isPermaLink="false">280802:2845483:3957734</guid><description>&lt;p&gt;In the comments of the last article Morgan came up with the idea of &lt;strong&gt;client &lt;/strong&gt;SSL certificates to secure the admin panel. This is not authentication in a classical sense, it is saying which SSL certificates (which you self-signed) you allow to access a particular site. This is a better solution than limiting the access to various IP adresses when you are a work nomad and you have to access it from different parts in the world.&lt;/p&gt;
&lt;p&gt;The steps to do this are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Setup OpenSSL to become a Certificate Authority (CA)&lt;/li&gt;
&lt;li&gt;Create a root CA key&lt;/li&gt;
&lt;li&gt;Create a key for the (sub)domain in question&lt;/li&gt;
&lt;li&gt;Setup your web server&lt;/li&gt;
&lt;li&gt;Create a client certificate and install it in your browser&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href="http://it.toolbox.com/blogs/securitymonkey/howto-securing-a-website-with-client-ssl-certificates-11500" target="_blank"&gt;Here is the HOWTO: Securing A Website With Client SSL Certificates&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RubyOnRailsSecurity/~4/0MWWuPh-bIg" height="1" width="1"/&gt;</description><wfw:commentRss>http://www.rorsecurity.info/journal/rss-comments-entry-3957734.xml</wfw:commentRss></item></channel></rss>

