Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Help Needed

  Asked By: Bill    Date: Feb 12    Category: Java    Views: 820
  

I have the following problem: I would like to send data from a JSP page (or
from an HTML form) to a servlet
using SSL protocol to make secure the communication. What must I do on both
client
and server side of my application?

Let's suppose I want to send a form to a servlet. Given that I want to use
SSL protocol
in the ACTION parameter of the form I would like to insert an URL like this:

https://www.mydomain.com/myservlet

To enable SSL protocol on client side (that is to say in the browser) is it
sufficient
I enable "SSL protocol" option in my Web Browser? Or must I do something
else?

About the server side: must I insert any code in my servlet (or include some
libraries) to
decrypt data it receives, or the decrypting process is carried out from the
Web Server (es. Apache)
automatically? In this second case the only thing I must do is set my Web
Server
correctly to support SSL protocol?

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Saxon Anderson     Answered On: Feb 12

1-On client side  usually u dont need any settings.
2-On server  box, depending on the server u are using,
should do somethings, it generally includes generating
secure keys and some settings in config file. please
refer to ur server (tomcat,weblogic,...)
documentation.good news is that which u never need to
code anything.

 
Answer #2    Answered By: Geraldine Perkins     Answered On: Feb 12

you must do this steps:
1.create a key store file by keytool.exe from jdk.
2.address this file in tomcat's conf.xml in ' <Connector port="8443" ' section and uncomment that section.
3.in the url  type :https://yorsite:8443/yourproject.
there is no need any client  setting and any code  in your servlet.

 
Answer #3    Answered By: Corey Jones     Answered On: Feb 12

Your question is very generic and web server  dependent. You need to read through the web  server documentation (the one that you use) as how to setup SSL.

i.e. jakarta.apache.org/.../ssl-howto.html

 
Didn't find what you were looking for? Find more on Help Needed Or get search suggestion and latest updates.




Tagged: