<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Quick and easy SSL in OC4J Standalone</title>
	<atom:link href="http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone/feed" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone</link>
	<description>Weblog for the AMIS Technology corner</description>
	<lastBuildDate>Fri, 10 Feb 2012 16:47:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: tintu</title>
		<link>http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone/comment-page-1#comment-416851</link>
		<dc:creator>tintu</dc:creator>
		<pubDate>Thu, 18 Nov 2010 07:06:10 +0000</pubDate>
		<guid isPermaLink="false">/?p=268#comment-416851</guid>
		<description>

 

 

 




Hi I have enabled SSL in oc4j but getting null pointer exception in client. The code is given below java.security.cert.X509Certificate[] ClientCertificates = (java.security.cert.X509Certificate[])request.getAttribute(

&quot;javax.servlet.request.X509Certificate&quot;);
 


 

 

 

&lt;strong&gt;&lt;strong&gt;

for
&lt;/strong&gt;&lt;strong&gt;
 
&lt;/strong&gt;
 
 (&lt;strong&gt;int&lt;/strong&gt; i=0;i&lt;ClientCertificates.length&lt;/strong&gt;


;i++)
{
user_cert = (X509Certificate) ClientCertificates[i];
}

</description>
		<content:encoded><![CDATA[<p> </p>
<p> </p>
<p> </p>
<p>Hi I have enabled SSL in oc4j but getting null pointer exception in client. The code is given below java.security.cert.X509Certificate[] ClientCertificates = (java.security.cert.X509Certificate[])request.getAttribute(</p>
<p>&#8220;javax.servlet.request.X509Certificate&#8221;);<br />
 </p>
<p> </p>
<p> </p>
<p> </p>
<p><strong></strong><strong></p>
<p>for<br />
</strong><strong><br />
 <br />
</strong><br />
 <br />
 (<strong>int</strong> i=0;i&lt;ClientCertificates.length</p>
<p>;i++)<br />
{<br />
user_cert = (X509Certificate) ClientCertificates[i];<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kenan Kara</title>
		<link>http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone/comment-page-1#comment-351730</link>
		<dc:creator>Kenan Kara</dc:creator>
		<pubDate>Thu, 07 Jan 2010 13:15:53 +0000</pubDate>
		<guid isPermaLink="false">/?p=268#comment-351730</guid>
		<description>Thanks for installation tips, it works!</description>
		<content:encoded><![CDATA[<p>Thanks for installation tips, it works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone/comment-page-1#comment-348884</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Sat, 03 Oct 2009 02:40:37 +0000</pubDate>
		<guid isPermaLink="false">/?p=268#comment-348884</guid>
		<description>Hey, way cool!  Had to play around with the XML config files a bit, but finally got it working with JDev 10.1.3.5. Make sure your &quot;&quot; statement in secure-web-site.xml is the same as the one in default-web-site.xml.  Note that the config files are located in folder &quot;..\embedded-oc4j\config&quot;</description>
		<content:encoded><![CDATA[<p>Hey, way cool!  Had to play around with the XML config files a bit, but finally got it working with JDev 10.1.3.5. Make sure your &#8220;&#8221; statement in secure-web-site.xml is the same as the one in default-web-site.xml.  Note that the config files are located in folder &#8220;..\embedded-oc4j\config&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Russell</title>
		<link>http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone/comment-page-1#comment-317358</link>
		<dc:creator>Jerry Russell</dc:creator>
		<pubDate>Thu, 08 May 2008 22:57:37 +0000</pubDate>
		<guid isPermaLink="false">/?p=268#comment-317358</guid>
		<description>Just a comment in case someone else runs into trouble. When using the keystore tool, there are two passwords, if you do not enter the same password for both, you may get &quot;&quot;Cannot recover key&quot; errors when deploying your application. Thanks for the instructions!</description>
		<content:encoded><![CDATA[<p>Just a comment in case someone else runs into trouble. When using the keystore tool, there are two passwords, if you do not enter the same password for both, you may get &#8220;&#8221;Cannot recover key&#8221; errors when deploying your application. Thanks for the instructions!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SMLG</title>
		<link>http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone/comment-page-1#comment-283045</link>
		<dc:creator>SMLG</dc:creator>
		<pubDate>Wed, 23 Jan 2008 01:06:58 +0000</pubDate>
		<guid isPermaLink="false">/?p=268#comment-283045</guid>
		<description>Hi, does any body has solved TAB&#039;s problem?, help help</description>
		<content:encoded><![CDATA[<p>Hi, does any body has solved TAB&#8217;s problem?, help help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TAB</title>
		<link>http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone/comment-page-1#comment-225510</link>
		<dc:creator>TAB</dc:creator>
		<pubDate>Mon, 28 May 2007 07:02:38 +0000</pubDate>
		<guid isPermaLink="false">/?p=268#comment-225510</guid>
		<description>Hi, 
This setting works in my jdeveloper version 10.1.3.0...
Now i already migrates my application using version 10.1.3.1 and suddenly jdeveloper found an error...(handshake alert: no_certificate)
so it&#039;s a bug or what in jdeveloper?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
This setting works in my jdeveloper version 10.1.3.0&#8230;<br />
Now i already migrates my application using version 10.1.3.1 and suddenly jdeveloper found an error&#8230;(handshake alert: no_certificate)<br />
so it&#8217;s a bug or what in jdeveloper?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hasnath</title>
		<link>http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone/comment-page-1#comment-146429</link>
		<dc:creator>hasnath</dc:creator>
		<pubDate>Tue, 31 Oct 2006 12:44:23 +0000</pubDate>
		<guid isPermaLink="false">/?p=268#comment-146429</guid>
		<description>may God bless .wat a simple and easy way to enable SSL</description>
		<content:encoded><![CDATA[<p>may God bless .wat a simple and easy way to enable SSL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gianluca Vannozzi</title>
		<link>http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone/comment-page-1#comment-38065</link>
		<dc:creator>Gianluca Vannozzi</dc:creator>
		<pubDate>Fri, 09 Sep 2005 13:45:12 +0000</pubDate>
		<guid isPermaLink="false">/?p=268#comment-38065</guid>
		<description>I resolved the problem, my http-web-site.xml is :

&lt; ?xml version=&quot;1.0&quot; ?&gt; 
  &lt; !DOCTYPE web-site (View Source for full doctype...)&gt; 
- &lt;web -site port=&quot;8888&quot; display-name=&quot;Oracle9iAS Containers for J2EE HTTP Web Site&quot; host=&quot;[ALL]&quot; log-request-info=&quot;false&quot; secure=&quot;false&quot;&gt;
  &lt;default -web-app application=&quot;default&quot; name=&quot;defaultWebApp&quot; load-on-startup=&quot;true&quot; shared=&quot;false&quot; /&gt; 
  &lt;web -app application=&quot;default&quot; name=&quot;dms0&quot; root=&quot;/dms0&quot; load-on-startup=&quot;false&quot; max-inactivity-time=&quot;no shutdown&quot; shared=&quot;false&quot; /&gt; 
  &lt;web -app application=&quot;default&quot; name=&quot;dms&quot; root=&quot;/dmsoc4j&quot; load-on-startup=&quot;false&quot; max-inactivity-time=&quot;no shutdown&quot; shared=&quot;false&quot; /&gt; 
  &lt;access -log path=&quot;../log/http-web-access.log&quot; format=&quot;$ip - $user - [$time] &#039;$request&#039; $status $size&quot; split=&quot;none&quot; /&gt; 
  &lt;/access&gt;&lt;/web&gt;

secure-web-site.xml:

&lt; ?xml version=&quot;1.0&quot; standalone=&quot;yes&quot; ?&gt;web-site (View Source for full doctype...)&gt; 
- &lt;web -site port=&quot;4443&quot; display-name=&quot;Oracle9iAS Containers for J2EE HTTP Web Site&quot; host=&quot;[ALL]&quot; log-request-info=&quot;false&quot; secure=&quot;true&quot;&gt;
  &lt;ssl -config keystore=&quot;sslfile&quot; keystore-password=&quot;simanoel&quot; needs-client-auth=&quot;false&quot; factory=&quot;com.evermind.server.JSSESSLServerSocketFactory&quot; /&gt; 
  &lt;default -web-app application=&quot;default&quot; name=&quot;defaultWebApp&quot; load-on-startup=&quot;true&quot; shared=&quot;false&quot; /&gt; 
  &lt;web -app application=&quot;default&quot; name=&quot;dms0&quot; root=&quot;/dms0&quot; load-on-startup=&quot;false&quot; max-inactivity-time=&quot;no shutdown&quot; shared=&quot;false&quot; /&gt; 
  &lt;web -app application=&quot;default&quot; name=&quot;dms&quot; root=&quot;/dmsoc4j&quot; load-on-startup=&quot;false&quot; max-inactivity-time=&quot;no shutdown&quot; shared=&quot;false&quot; /&gt; 
  &lt;access -log path=&quot;../log/http-web-access.log&quot; format=&quot;$ip - $user - [$time] &#039;$request&#039; $status $size&quot; split=&quot;none&quot; /&gt; 
  &lt;/access&gt;&lt;/web&gt;

server.xml:

&lt; ?xml version=&quot;1.0&quot; ?&gt;application-server (View Source for full doctype...)&gt; 
- &lt;application -server application-directory=&quot;../applications&quot; deployment-directory=&quot;../application-deployments&quot; connector-directory=&quot;../connectors&quot; auto-start-applications=&quot;true&quot; localhostIsAdmin=&quot;true&quot;&gt;
  &lt;rmi -config path=&quot;./rmi.xml&quot; /&gt; 
  &lt;jms -config path=&quot;./jms.xml&quot; /&gt; 
- &lt;log&gt;
  &lt;file path=&quot;../log/server.log&quot; /&gt; 
  &lt;/file&gt;&lt;/log&gt;
  &lt;transaction -config timeout=&quot;30000&quot; /&gt;application name=&quot;default&quot; path=&quot;application.xml&quot; /&gt; 
  &lt;application name=&quot;ProveStruts2&quot; path=&quot;../applications/__ProveStruts2.ear&quot; auto-start=&quot;true&quot; /&gt; 
  &lt;application name=&quot;ProveStruts&quot; path=&quot;../applications/__ProveStruts.ear&quot; auto-start=&quot;true&quot; /&gt; 
  &lt;global -web-app-config path=&quot;global-web-application.xml&quot; /&gt; 
  &lt;web -site path=&quot;./http-web-site.xml&quot; /&gt; 
  &lt;web -site path=&quot;./secure-web-site.xml&quot; /&gt; 
  &lt;cluster id=&quot;-3644109578&quot; /&gt; 
  &lt;/cluster&gt;&lt;/web&gt;&lt;/web&gt;&lt;/global&gt;&lt;/application&gt;&lt;/application&gt;&lt;/transaction&gt;&lt;/jms&gt;&lt;/rmi&gt;&lt;/application&gt;</description>
		<content:encoded><![CDATA[<p>I resolved the problem, my http-web-site.xml is :</p>
<p>< ?xml version="1.0" ?><br />
  < !DOCTYPE web-site (View Source for full doctype...)><br />
- <web -site port="8888" display-name="Oracle9iAS Containers for J2EE HTTP Web Site" host="[ALL]" log-request-info="false" secure="false"><br />
  <default -web-app application="default" name="defaultWebApp" load-on-startup="true" shared="false" /><br />
  <web -app application="default" name="dms0" root="/dms0" load-on-startup="false" max-inactivity-time="no shutdown" shared="false" /><br />
  <web -app application="default" name="dms" root="/dmsoc4j" load-on-startup="false" max-inactivity-time="no shutdown" shared="false" /><br />
  <access -log path="../log/http-web-access.log" format="$ip - $user - [$time] '$request' $status $size" split="none" /><br />
  </web></p>
<p>secure-web-site.xml:</p>
<p>< ?xml version="1.0" standalone="yes" ?>web-site (View Source for full doctype&#8230;)><br />
- <web -site port="4443" display-name="Oracle9iAS Containers for J2EE HTTP Web Site" host="[ALL]" log-request-info="false" secure="true"><br />
  <ssl -config keystore="sslfile" keystore-password="simanoel" needs-client-auth="false" factory="com.evermind.server.JSSESSLServerSocketFactory" /><br />
  <default -web-app application="default" name="defaultWebApp" load-on-startup="true" shared="false" /><br />
  <web -app application="default" name="dms0" root="/dms0" load-on-startup="false" max-inactivity-time="no shutdown" shared="false" /><br />
  <web -app application="default" name="dms" root="/dmsoc4j" load-on-startup="false" max-inactivity-time="no shutdown" shared="false" /><br />
  <access -log path="../log/http-web-access.log" format="$ip - $user - [$time] '$request' $status $size" split="none" /><br />
  </web></p>
<p>server.xml:</p>
<p>< ?xml version="1.0" ?>application-server (View Source for full doctype&#8230;)><br />
- <application -server application-directory="../applications" deployment-directory="../application-deployments" connector-directory="../connectors" auto-start-applications="true" localhostIsAdmin="true"><br />
  <rmi -config path="./rmi.xml" /><br />
  <jms -config path="./jms.xml" /><br />
- <log><br />
  <file path="../log/server.log" /><br />
  </log></p>
<transaction -config timeout="30000" />application name=&#8221;default&#8221; path=&#8221;application.xml&#8221; /><br />
  <application name="ProveStruts2" path="../applications/__ProveStruts2.ear" auto-start="true" /><br />
  <application name="ProveStruts" path="../applications/__ProveStruts.ear" auto-start="true" /><br />
  <global -web-app-config path="global-web-application.xml" /><br />
  <web -site path="./http-web-site.xml" /><br />
  <web -site path="./secure-web-site.xml" /><br />
  <cluster id="-3644109578" /><br />
  </application></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gianluca Vannozzi</title>
		<link>http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone/comment-page-1#comment-38064</link>
		<dc:creator>Gianluca Vannozzi</dc:creator>
		<pubDate>Fri, 09 Sep 2005 13:37:22 +0000</pubDate>
		<guid isPermaLink="false">/?p=268#comment-38064</guid>
		<description>I have  resolved the problem if you want I can send you the files I modified.</description>
		<content:encoded><![CDATA[<p>I have  resolved the problem if you want I can send you the files I modified.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rem</title>
		<link>http://technology.amis.nl/blog/268/quick-and-easy-ssl-in-oc4j-standalone/comment-page-1#comment-38042</link>
		<dc:creator>Rem</dc:creator>
		<pubDate>Fri, 09 Sep 2005 12:06:45 +0000</pubDate>
		<guid isPermaLink="false">/?p=268#comment-38042</guid>
		<description>Hi, I&#039;ve the same problem using standalone OC4J provided with JDeveloper.

please help us ...

Thanks, Rem</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve the same problem using standalone OC4J provided with JDeveloper.</p>
<p>please help us &#8230;</p>
<p>Thanks, Rem</p>
]]></content:encoded>
	</item>
</channel>
</rss>

