我运行以下命令来生成密钥库,证书和信任库:
- keytool -genkeypair -keyalg RSA -keysize 2048 -alias clientcertalias -dname" CN = Local,OU = Department,O = Company,L = City,ST = State,C = US" -keystore keystore.jks -storepass" clientpassword1" -keypass" clientpassword2"
- keytool -export -alias clientcertalias -file client.cer -keystore keystore.jks -storepass" clientpassword1"
- keytool -import -v -trustcacerts -alias clientcertalias -file client.cer -keystore keystore.jks -storepass" serverpass" -noprompt;
醇>
当我尝试启动我的tomcat服务器时,它会给出上面提到的异常。但是当我保持" storepass"和" keypass"点1相同,我的服务器顺利启动。这两个密码有什么意义?为什么我们必须保持一致?