zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    正则表达式
    cookie和session的区别(转载)
    Http协议
    10倍工程师
    10倍工程师
    HTML介绍
    HTML介绍
    网络基础之网络协议篇
    网络基础之网络协议篇
    计算机中的进制和编码
  • 原文地址:https://www.cnblogs.com/pony/p/1602320.html
Copyright © 2011-2022 走看看