<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Musings of a Trained Monkey: Tomcat 5.5/Java 5 and SSL...</title>
    <link>http://www.stevelongdo.com/articles/2005/12/12/tomcat-5-5-java-5-and-ssl</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Tomcat 5.5/Java 5 and SSL...</title>
      <description>I ran into a puzzling situation trying to setup &lt;a href="https://clearinghouse.ja-sig.org/wiki/display/CAS/Home"&gt;Yale's CAS&lt;/a&gt; and the &lt;a href="http://www.springframework.org/"&gt;Spring Framework&lt;/a&gt;/&lt;a href="http://acegisecurity.sourceforge.net"&gt;Acegi &lt;/a&gt; contacts sample application on my workstation.  I had CAS deployed on &lt;a href="http://tomcat.apache.org/"&gt;Tomcat 5.5&lt;/a&gt; and the &lt;a href="http://acegisecurity.sourceforge.net/"&gt;Acegi&lt;/a&gt; sample application deployed on &lt;a href="http://www.bea.com/framework.jsp?CNT=index.htm&amp;FP=/content/products/weblogic"&gt;BEA WebLogic 9.0&lt;/a&gt;, both running under &lt;a href="http://java.sun.com"&gt;Sun's JDK 1.5.0_06&lt;/a&gt;.  I kept getting errors like:&lt;div style="overflow: auto;"&gt;&lt;typocode&gt;&lt;pre&gt;Your CAS credentials were rejected.&lt;br/&gt;
Reason: HTTPS hostname wrong: &amp;lt;localhost&gt; should be &lt;127.0.0.1&gt;&lt;/pre&gt;&lt;/typocode&gt;&lt;/div&gt;
I couldn't figure this out because the &lt;typocode&gt;server.xml&lt;/typocode&gt; for &lt;a href="http://tomcat.apache.org/"&gt;Tomcat&lt;/a&gt; included both the &lt;typocode&gt;keystoreFile&lt;/typocode&gt; and &lt;typocode&gt;truststoreFile&lt;/typocode&gt; parameters for the SSL connection.  The JVM JRE cacerts file included self-signed certs for both the &lt;a href="http://www.bea.com/framework.jsp?CNT=index.htm&amp;FP=/content/products/weblogic"&gt;BEA &lt;/a&gt; server and the &lt;a href="http://tomcat.apache.org/"&gt;Tomcat&lt;/a&gt; server which should be picked up system wide whether or not I specifically include it in the &lt;typocode&gt;server.xml&lt;/typocode&gt; file.  I am not sure why but putting the following option on the &lt;a href="http://tomcat.apache.org/"&gt;Tomcat&lt;/a&gt; command line solved the problem:&lt;br/&gt;&lt;div style="overflow: auto; "&gt;&lt;typocode&gt;&lt;pre&gt;-Djavax.net.ssl.trustStore="C:\Program Files\Java\jre1.5.0_06\lib\security\cacerts"&lt;/pre&gt;&lt;/typocode&gt;
&lt;/div&gt;You can also see from this that it is a Windows workstation...  I am documenting this for the benefit of other programmers and Google (which doesn't have much of anything about this particular problem).
</description>
      <pubDate>Mon, 12 Dec 2005 20:30:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:29735744-1a78-4ba9-a691-45d15917f441</guid>
      <author>Steve Longdo</author>
      <link>http://www.stevelongdo.com/articles/2005/12/12/tomcat-5-5-java-5-and-ssl</link>
      <category>java</category>
      <category>tomcat</category>
      <category>bea</category>
      <category>spring</category>
      <category>acegi</category>
      <trackback:ping>http://www.stevelongdo.com/articles/trackback/34</trackback:ping>
    </item>
    <item>
      <title>"Tomcat 5.5/Java 5 and SSL..." by eel</title>
      <description>nice xmas theme but it's still wierd in ie. fyi...</description>
      <pubDate>Thu, 15 Dec 2005 22:35:09 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:705864c4-efde-4c92-84da-de3f2e8096db</guid>
      <link>http://www.stevelongdo.com/articles/2005/12/12/tomcat-5-5-java-5-and-ssl#comment-37</link>
    </item>
    <item>
      <title>"Tomcat 5.5/Java 5 and SSL..." by Steve</title>
      <description>Thanks Sen-dog!  If only my employer would see the light as well.  I hope to be doing some Rails informational posting in the very near future...</description>
      <pubDate>Tue, 13 Dec 2005 18:33:01 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:397f4aba-0919-4e12-b985-e2200a0d9d81</guid>
      <link>http://www.stevelongdo.com/articles/2005/12/12/tomcat-5-5-java-5-and-ssl#comment-36</link>
    </item>
    <item>
      <title>"Tomcat 5.5/Java 5 and SSL..." by Sen Binclair</title>
      <description>gem install rails</description>
      <pubDate>Tue, 13 Dec 2005 18:28:50 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:a718faec-87a5-4c6b-81e9-a48ba63dbf32</guid>
      <link>http://www.stevelongdo.com/articles/2005/12/12/tomcat-5-5-java-5-and-ssl#comment-35</link>
    </item>
  </channel>
</rss>
