Step 01: Create .keystore file.
Run the following command to generate .keystore file from $JAVA_HOME/bin.
On windows :
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
On linux:
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
Step 02: Uncomment "SSL HTTP/1.1 Connector on port 8443" on $CATALINA_HOME/conf/server.xml and modify it as follows.
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="${user.home}/.keystore" keystorePass="123@com"/>
The "keystorePass" is the password which you provided when generating .keystore file. Now restart the tomcat.
By default port 8443 keeps listening https requests. Open a browser and check the following URL.
https://localhost:8443
If you see tomcat's home page, you are done.
Nice Post thanks for Sharing it's really helpful form me
ReplyDeletehttp://www.towingcalgary.net/towing-companies-calgary.html