Hi I am trying to use SSL protocol for accessing my jsp page.I have configured the following as per the tomcat docs:- 1 Create a certificate keystore by executing the following command: Windows: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA 2 Uncomment the "SSL HTTP/1.1 Connector" entry in $CATALINA_HOME/conf/server.xml and tweak as necessary After that restart the server
I have a normal jsp page called homepage.jsp & i want to access this one using https protocol.So i want to know whether i do need to make any changes in this jsp. Because this homepage.jsp is accessible using http protocol but when i use https it gives can not find server. Please help me in this
Originally posted by venkatesh pendharkar: Hi ...and tweak as necessary...
Maybe you could tell us, exactly, what tweaking you've done? Better yet, can you post the <Connector ../> entry for your secure connector from your server.xml (minus your keystorePass value, of course)?
You need to tell Tomcat where your keystore is and what the password for it is:
Joined: Apr 29, 2006
thanks Ben for reply Can you tell me whether keystoreFile= attribute should point to the path where keystore file is placed??Becuase i dont know where this file is stored.I searched my entire c: for *.kdb file but couldnt find anything. So i thought of creating another certificate by keytool but now its not taking the password that I had set.it gives the error as "keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect" .I dont know why this is happening beacuase i very well remember that password that i had set was "123456".But now its not taking that password.Can you tell me if there is any way by which i can reset the password.I have reinstalled jdk as well,still it doesnt work.
You can specify the path and filename when you run keytool.
In that example, I'm creating a keystore in the current directory with filename: 'keystore.kdb'.
Joined: Apr 29, 2006
HI I created keystore.kdb in "C:\jdk1.5.0_0\bin\" so in my server.xml i have added the following :- keystoreFile="C:\jdk1.5.0_0\bin\keystore.kdb" keystorePass="changeit"
Buts still it doesnt work i.e. when i try to access a jsp by https then it shows as Can not find server,but the same page is displayed when using http protocol. Is there anything else left to be done. I also restarted server couple of times.
Hi Me too have the same problem while setup SSL on tomcat. The port 8080(http) is working correctly, but 8443(https) shown error page. Any other Solution. I am using Suse10.1(SLED) JDK1.4 and tomcat4.1........
Thanks in advance siva [ February 11, 2007: Message edited by: smiley_siva ]