在TOMCAT 6配置SSL时,注意keystorepass和storepass要设置为一样的,否则出错,见TOMCAT的相关介绍:
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
Note: your private key password and keystore password should be the same. If they differ, you will get an error along the lines of
java.io.IOException: Cannot recover key
, as documented in Bugzilla issue 38217, which contains further references for this issue