简版:
http://blog.sina.com.cn/s/blog_9aebf5f00100wim5.html
图文:
http://blog.csdn.net/supersky07/article/details/7407523
另外我做的事
1)给tomcat设置jre
下载了jre1.7, 然后在tomcat/bin/setclasspath.bat的最开始加上了set JRE_HOME=C:\programs files\Java\jre
如果不以debug模式运行tomcat,只需要给它设置jre就行。
2)使用了jre自带的keytool生成C:\tomcat.keystore文件,见博客最开始
3)修改了server.xml开启了https
4)启动tomcat,使用catalina.bat start命令
5)通过访问https://localhost:8443测试了https能正常工作。
6)现在只要将原来的10032端口改成8443端口就可以切换到tomcat7进行authentication.
7)最后是java在编译和运行的时候这样指定classpath.
javac -classpath xxx.jar Test.java
java -cp xxx.jar;. Test