Problem in configuring SSL in Tomcat5.5  
Author Message
mineshdesai@gmail.com





PostPosted: 2007-3-21 13:23:00 Top

java-programmer, Problem in configuring SSL in Tomcat5.5 Hi,

I have Tomcat5.5 and J2sdk5 installed on my system. I wanted turn on
SSL services in tomcat. I went through the Tomcat Documentation and
did it exactly. I modified server.xml as below,

<!-- Define a SSL HTTP/1.1 Connector on port 8443 -->

<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />

I also created certificate using keytool with default password as
"changeit" and alias as "tomcat".

I restarted the tomcat services too, and then tried to access the page
but i am not able to access it using https connection. Where as i am
able to access same page using Http connection.

Secondly, I am not able to access default tomcat Page too using Https
connection. Everything works fine in case of HTTP connection.

Following is the way iam trying to acces the page,

https://localhost:8443

Can any one help me out to find the problem.
I have IE 6 with SP2 installed on my system.

Thanks
Minesh

 
Lew





PostPosted: 2007-3-21 20:36:00 Top

java-programmer >> Problem in configuring SSL in Tomcat5.5 email***@***.com wrote:
> ... J2sdk5 ...

JDK 5.

-- Lew
 
Arne Vajh鴍





PostPosted: 2007-3-22 7:17:00 Top

java-programmer >> Problem in configuring SSL in Tomcat5.5 email***@***.com wrote:
> I have Tomcat5.5 and J2sdk5 installed on my system. I wanted turn on
> SSL services in tomcat. I went through the Tomcat Documentation and
> did it exactly. I modified server.xml as below,
>
> <!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
>
> <Connector port="8443" maxHttpHeaderSize="8192"
> maxThreads="150" minSpareThreads="25"
> maxSpareThreads="75"
> enableLookups="false" disableUploadTimeout="true"
> acceptCount="100" scheme="https" secure="true"
> clientAuth="false" sslProtocol="TLS" />
>
> I also created certificate using keytool with default password as
> "changeit" and alias as "tomcat".
>
> I restarted the tomcat services too, and then tried to access the page
> but i am not able to access it using https connection. Where as i am
> able to access same page using Http connection.
>
> Secondly, I am not able to access default tomcat Page too using Https
> connection. Everything works fine in case of HTTP connection.
>
> Following is the way iam trying to acces the page,
>
> https://localhost:8443
>
> Can any one help me out to find the problem.

Any error messages on the server ?

Is port 8443 in use after ? And was it not in use before ?

Arne
 
 
mineshdesai@gmail.com





PostPosted: 2007-3-22 23:19:00 Top

java-programmer >> Problem in configuring SSL in Tomcat5.5 On Mar 22, 4:17 am, Arne Vajh鴍 <email***@***.com> wrote:
> email***@***.com wrote:
> > I have Tomcat5.5 and J2sdk5 installed on my system. I wanted turn on
> > SSL services in tomcat. I went through the Tomcat Documentation and
> > did it exactly. I modified server.xml as below,
>
> > <!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
>
> > <Connector port="8443" maxHttpHeaderSize="8192"
> > maxThreads="150" minSpareThreads="25"
> > maxSpareThreads="75"
> > enableLookups="false" disableUploadTimeout="true"
> > acceptCount="100" scheme="https" secure="true"
> > clientAuth="false" sslProtocol="TLS" />
>
> > I also created certificate using keytool with default password as
> > "changeit" and alias as "tomcat".
>
> > I restarted the tomcat services too, and then tried to access the page
> > but i am not able to access it using https connection. Where as i am
> > able to access same page using Http connection.
>
> > Secondly, I am not able to access default tomcat Page too using Https
> > connection. Everything works fine in case of HTTP connection.
>
> > Following is the way iam trying to acces the page,
>
> >https://localhost:8443
>
> > Can any one help me out to find the problem.
>
> Any error messages on the server ?
>
> Is port 8443 in use after ? And was it not in use before ?
>
> Arne- Hide quoted text -
>
> - Show quoted text -

following is the log file

Mar 22, 2007 8:47:26 PM org.apache.coyote.http11.Http11AprProtocol
init
INFO: Initializing Coyote HTTP/1.1 on http-8090
Mar 22, 2007 8:47:26 PM org.apache.coyote.http11.Http11AprProtocol
init
INFO: Initializing Coyote HTTP/1.1 on http-8443
Mar 22, 2007 8:47:26 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Mar 22, 2007 8:47:26 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 938 ms
Mar 22, 2007 8:47:27 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 22, 2007 8:47:27 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Mar 22, 2007 8:47:27 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 22, 2007 8:47:28 PM org.apache.coyote.http11.Http11AprProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8090
Mar 22, 2007 8:47:28 PM org.apache.coyote.http11.Http11AprProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8443
Mar 22, 2007 8:47:28 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Mar 22, 2007 8:47:28 PM org.apache.catalina.storeconfig.StoreLoader
load
INFO: Find registry server-registry.xml at classpath resource
Mar 22, 2007 8:47:28 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1718 ms