tomcat支持ssl时Keystore was tampered with, or password was incorrect

一直在报整个错误,密码明明没有问题,中国搜出来的资料很多都说:

确实是密码错误,删除后重新做key就可以了

刨去整个原因,还会有

Keystore was tampered with, or password was incorrect

错误的话,那可能的原因是:配置顺序的问题,即keystoreFile配置要写在Connectoer里面

 

而keystorePass则应该写到Factory中!否则就会一直报错。

 

原文描述如下:

 

The Error “java.io.IoException: keystore was tampered with, or password was incorrect”. This error occurs during installation. It is because the password should be in the factory className, not in the Connector className.

Please insure your Connector is in the following format:

<!-- Define an SSL HTTP/1.1 Connector on port 443 --><Connector className="org.apache.catalina.connector.http.HttpConnector"port="443" minProcessors="5" maxProcessors="75" keystoreFile="path.to.keystore"enableLookups="true"acceptCount="10" debug="0" scheme="https" secure="true"><Factory className="org.apache.catalina.net.SSLServerSocketFactory"clientAuth="false" protocol="TLS" keystorePass="keystore.password"/></Connector>注释原文地址:http://www.globalsign.com/support/faq/tomcat/01.php

 

 

转载于:https://www.cnblogs.com/pony/archive/2009/11/13/1602320.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值