<?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>sdm networks weblog &#187; ssl</title>
	<atom:link href="http://sdm-net.org/tag/ssl/feed/" rel="self" type="application/rss+xml" />
	<link>http://sdm-net.org</link>
	<description>The web and other things</description>
	<lastBuildDate>Mon, 21 Jun 2010 08:20:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Configuring JBoss with SSL</title>
		<link>http://sdm-net.org/2008/11/configuring-jboss-with-ssl/</link>
		<comments>http://sdm-net.org/2008/11/configuring-jboss-with-ssl/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 09:13:58 +0000</pubDate>
		<dc:creator>René Samselnig</dc:creator>
				<category><![CDATA[About]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://sdm-net.org/?p=225</guid>
		<description><![CDATA[<p>Sometimes you need a self signed certificate to use SSL with your JBoss installation. This is a small how-to that tells you the essential steps to do that. Creating the Keystore Creating a keystore to store certificates that JBoss can use. keytool -genkey -alias $MYDOMAIN -keyalg RSA ↵ -keystore my.keystore You will be asked for [...]</p>
]]></description>
			<content:encoded><![CDATA[<p>Sometimes you need a self signed certificate to use SSL with your JBoss installation. This is a small how-to that tells you the essential steps to do that.<span id="more-225"></span></p>

<h4>Creating the Keystore</h4>

<p>Creating a keystore to store certificates that JBoss can use.</p>

<pre><code>keytool -genkey -alias $MYDOMAIN -keyalg RSA ↵
-keystore my.keystore</code></pre>

<p>You will be asked for a password to this keystore, just set any password you like. Furthermore you will need to enter some more information, just enter whatever you like &#8211; you only need these values to be correct if you are going to sign the certificate at your Certificate Authority.</p>

<h4>Creating a Certificate Request</h4>

<p>Then we need to create a Certificate Request.</p>

<pre><code>keytool -certreq -keystore my.keystore ↵
-alias $MYDOMAIN -file myserver.csr</code></pre>

<p>Normally you would want to send this Certificate Request to your Certificate Authority to sign it. That way browsers would accept your certificate without complaining. But we only need this certificate for our local development machine, so don&#8217;t worry about a security exception. You need to accept this certificate within your browser, though.</p>

<h4>Configuring JBoss</h4>

<p>You need to change this file to enable SSL with our created certificate: <code>$JBOSS_HOME/server/default/deploy/jbossweb-tomcat50.sar/server.xml</code>. Look for the following lines and uncomment them:</p>

<pre><code>&lt;Connector port="8443" address="${jboss.bind.address}"
  maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
  emptySessionPath="true"
  scheme="https" secure="true" clientAuth="false" 
  keystoreFile="${jboss.server.home.dir}/conf/ssl/my.keystore"
  keystorePass="KEYSTORE_PASSWORD" sslProtocol = "TLS" /&gt;
</code></pre>

<p>At last we need to copy your keystore to the proper place:</p>

<pre><code>mkdir $JBOSS_HOME/server/default/conf/ssl
cp my.keystore $JBOSS_HOME/server/default/conf/ssl/
</code></pre>

<p>After a JBoss restart you can now use the https connection.</p>

<h4>See also</h4>

<p>This how-to is a short version of <a href="http://www.hackerwiki.org/index.php/SSL_mit_JBoss">SSL mit JBoss (german)</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sdm-net.org/2008/11/configuring-jboss-with-ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
