I am trying to create an example that uses HTTPS connection. I have successfully configured a custom certificate following the steps given in Tomcat 6.0 documentation. A https://localhost:8443/ successfully opens the Tomcat index page.
I am unable to configure a page/servlet to open in HTTPS. Would anyone please suggest me the steps to configure a webapp to automatically redirect itself into a HTTPS connection.
Have you configured your server.xml to allow the application to run using HTTPS??
and also you have to give keystore and keypass attributes in server.xml.
Thanks for the reply. Yes, I have successfully configured SSL in Tomcat and all the necessary changes to the server.xml have been done.
Here's the copy of my server.xml document..
I think in this case the server is not picking up the path of the keystore file, maybe you can put the file in some other location on your hard drive and try giving the absolute path.
The problem is now resolved. I created another server in Eclipse and it copied the server.xml of Tomcat!!! So, finally, SSL working with Eclipse. Thanks again for the replies.
I love java but she hates me... :'(
It's feeding time! Give me the food you were going to give to this tiny ad: