Tomcat 6 SSL

From Swivel Knowledgebase
Revision as of 15:18, 17 August 2011 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Overview

Additional configuration to Tomcat to allow SSL.


Prerequisites

Tomcat 6 PINsafe 3.x


Symptoms

org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'keystoreFile' to 'conf\certificate\.keystore' did not find a matching property. org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'keystorePass' to 'password' did not find a matching property.

and

SEVERE: Error initializing endpoint java.lang.Exception: Invalid Server SSL Protocol SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.lang.Exception: Invalid Server SSL Protocol


Solution

Add protocol=”org.apache.coyote.http11.Http11NioProtocol” to the server.xml file in <path to Apache Tomcat>\Tomcat 6.0\conf

Example:

C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\server.xml

Example:

From:

   <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
         	maxThreads="150" scheme="https" secure="true"
          	clientAuth="false" sslProtocol="TLS" /> 

To:

   <Connector port="8443" protocol=”org.apache.coyote.Http11NioProtocol” SSLEnabled="true”
         	maxThreads="150" scheme="https" secure="true”
         	clientAuth="false" sslProtocol="TLS" />