getting SSL work on tomcat,fail to connect

J

jimgardener

hi
i am trying to configure SSL on tomcat5.5.27 .I created a keystore in
my usr home directory using
keytool -genkey -alias tomcat -keyalg RSA

and provided a password 'mysecret'.

Then i uncommented the connector entry in tomcat's server.xml
and added the password

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

Then i started tomcat,when i load http://localhost:8080/ the page
loads successfully.But when i try
https://localhost:8443 i get a message that it failed to connect.
Is there something wrong in my server.xml?
please help
jim
 
A

Arne Vajhøj

jimgardener said:
i am trying to configure SSL on tomcat5.5.27 .I created a keystore in
my usr home directory using
keytool -genkey -alias tomcat -keyalg RSA

and provided a password 'mysecret'.

Then i uncommented the connector entry in tomcat's server.xml
and added the password

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

Then i started tomcat,when i load http://localhost:8080/ the page
loads successfully.But when i try
https://localhost:8443 i get a message that it failed to connect.
Is there something wrong in my server.xml?

You should follow the guide in Tomcat docs exactly. Then it should
work.

http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html

If you still have problems, then find the errors in the
log file and post them.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top