I just completed the chat application using Java which is working fine .
Now my Team Leader asked me to add the Secure Socket Layer(SSL) in the application.
Without SSL : I used this configuration in server.xml
<Connector connectionTimeout="20000" maxThreads="200" port="8089" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8" />
To add SSL : I have added the below code in my server.xml
<Connector SSLEnabled="true" clientAuth="false" maxThreads="150" port="8090" protocol="HTTP/1.1" scheme="https" secure="true" sslProtocol="TLS" />
But I am getting the page as Internet Explorer cannot display the webpage
Can any one tell me how to add the feature ?
First you must create a certificate:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
(You must choose a password then, “123456” in example)
After you filled out all the informations you will get a .keystore in your home-directory (C:/Users/tim/.keystore).
Remove the Protocol and the sslProtocol from the connector!
Add
and
to the Connector.
Here we go. Start the server, open the browser and navigate to https:// localhost/