SSL Connector Fails to Initialize During Tomcat Startup

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

After starting Confluence, you are unable to connect to https://<BASE_URL>:8443. 

The following appears in catalina.out:

SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8443]]

org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8443]]

...

Caused by: java.io.FileNotFoundException: /var/root/.keystore (No such file or directory)

原因

The Keystore used to store the SSL certificates is not located in the default location. 

ソリューション

  • Edit the server configuration file at this location: <CONFLUENCE-INSTALL>/conf/server.xml
  • You will need to add the attribute  keystoreFile="<MY_CERTIFICATE_LOCATION>"  to the  Connector  element so that the element looks like this:

    <Connector port="8443" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" SSLEnabled="true"
               URIEncoding="UTF-8" keystorePass="<MY_CERTIFICATE_PASSWORD>"
               keystoreFile="<MY_CERTIFICATE_LOCATION>"/>

If you generated a self-signed certificate, the location will be in that user's home directory

最終更新日 2016 年 4 月 21 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.