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.