在dos窗口里面生成秘钥: keytool -genkey -alias tomcat -keyalg RSA 然后在浏览器里面输入https://localhost:8443,就会出现:数字证书错误。。。。。