1. generate certificate
keytool -genkey -keyalg RSA -alias tomcat -keystore <keystore_filename>
2. open {tomcat_home}/conf/server.xml and uncomment
<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="E:/apache-tomcat-5.5.33/tomcat.keystore"
/>
3. https://localhost: 8443/
Notice:
Problem: cannot open localhost:8443
Solution: try to delete "tcnative-1.dll" file under {tomcat_home}/bin/
Problem: untrusted site
Solution: add to trusted site. This is a browser dependent issue.