tomcat支援ssl時Keystore was tampered with, or password was incorrect

來源:互聯網
上載者:User

一直在報整個錯誤,密碼明明沒有問題,中國搜出來的資料很多都說:

確實是密碼錯誤,刪除後重新做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

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.