TOMCAT SSL SETTING 1. Environment 1.1 Tomcat 6.0.16 1.2 JDK 1.6.0_11 1.3 Windows Vista Home Premium SP1 2. Define Visual Host 2.1 至 C:\Windows\System32\drivers\etc\ 至至 hosts 至,至至至至至至 至至: 192.168.102.77 slantkang-hp. i ks.com.tw 2.2 至至 %CATALINA_HOME%\conf\ 至至 server.xml 至至 一 <Engine name="Catalina" defaultHost=" localhost "> 至 localhost 至至至至至至至,至至 slantkang-hp.iks.com.tw 至至 一 <Host name=" localhost " appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 至 localhost 至至至至至至至,至至 slantkang-hp.iks.com.tw 至至,至至至至至至,至至至 http:// slantkang-hp.iks.com.tw:8080 3. 切切 Console 切切切切切切 % CATALINA_HOME % 切, 切切切切切切 Step 1. Generate an RSA key pair and a self-signed certificate JDK 1.6: keytool -genkeypair -alias tomcat -keyalg RSA -keystore server.keystore JDK 1.5: keytool -genkey -alias tomcat -keyalg RSA -keystore server.keystore -keypass changeit -storepass changeit -keysize 1024 //KEY SIZE