first you need to create a keystore with following command.
keytool -genkey -keyalg RSA -keystore /home/chathuranga/test_chathu.keystore
then answers for the questions that prompts sequentially. once the keystore is created, you can use the following command to check whether your keystore is there.
keytool -list -keystore /home/chathuranga/test_chathu.keystore
Now it is the time to do the tocat SSL configuration.
In tomcatHome/conf/server.xml file, change the SSL configuration as follows.
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="/home/chathuranga/test_chathu.keystore"
keystorePass="password" />
Then restart the tomcat server and try to access the following URL.
https://locahost:8443
you will notice that, your tomcat installation supports SSL(HTTPS) now.
Thanks
Chathuranga Tennakoon
chathuranga.t@gmail.com
keytool -genkey -keyalg RSA -keystore /home/chathuranga/test_chathu.keystore
then answers for the questions that prompts sequentially. once the keystore is created, you can use the following command to check whether your keystore is there.
keytool -list -keystore /home/chathuranga/test_chathu.keystore
Now it is the time to do the tocat SSL configuration.
In tomcatHome/conf/server.xml file, change the SSL configuration as follows.
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="/home/chathuranga/test_chathu.keystore"
keystorePass="password" />
Then restart the tomcat server and try to access the following URL.
https://locahost:8443
you will notice that, your tomcat installation supports SSL(HTTPS) now.
Thanks
Chathuranga Tennakoon
chathuranga.t@gmail.com
No comments:
Post a Comment