implement SSL in JSP and servlets

hi there,

i needed some help in implementing ssl in JSPs and servlets. My idea was to have a login page and also use it where sensitive data is being sent. I have used the basic socket programming (socket.class and serverSocket.class) in GUI applications using threads to listen and send simultaniously and understand how it works but how do I implement it in JSP and servlets and where do i store the certificate?

i do know that using SSL sockets is very much the same as using the normal sockets.

can anyone tell me any useful links or give me a step by step guide how to implement it and which classes to use

your help would be very much appreciated.

mani

[695 byte] By [maniSingha] at [2007-10-1 20:56:36]
# 1
by the way I am using tomcat web server for jsps and servletsmani
maniSingha at 2007-7-13 2:53:29 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 2
You need to look at the Tomcat SSL Connector.
ejpa at 2007-7-13 2:53:29 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 3
Hello,Did U get the solution regarding implement SSL in either .jsp or in servelt class files,Pls reply me soon ,on tm2bhatt@yahoo.co.in or on tapan_bhatts@yahoo.co.in,if U get it,or 4ward link to the resource to the answer.Thanks Tapan
bhat@screena at 2007-7-13 2:53:29 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 4

hi,

soory for late reply.

i think you need to use keytool program in your JDK to generate a certificate signature file and you need to configure the server.xml to open and use the HTTPS port. I have not had any additional info on this but i would assume that you simply enter https:// on the file you wish to load in your form and it should use the HTTPS port provided it can find the certificate which must be stored somewhere in your tomcat web server. i would recommend you see tomcat website or search on google for "ssl support in tomcat".i hav not had time to look into this but i will as soon as i am free from my work load.

mani

maniSingha at 2007-7-13 2:53:29 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...