Keystore was tampered with or password was incorrect

今天弄tomcat双向认证的时候启动tomcat出现这个错误,发现有可能是在设置common name的时候没有设置相应的ip,而是随便写了个值。改正后又出现错误:failed to decrypt safe contents entry。网上查了下发现有可能是密码设置得不准确,设置太短的缘故,重新生成证书将密码设置到大于6位,启动tomcat,没有报错了!

原文地址:https://www.cnblogs.com/symen/p/6373965.html