Unable to bind HTTPS port due to java.io.IOException: Invalid keystore format

お困りですか?

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

コミュニティに質問

問題

Bamboo is unable to bind the secure port after setting the HTTPS configuration.

診断

The following error can be found in <Bamboo_Install>/logs/catalina.out:

22-Jan-2018 22:48:34.738 SEVERE [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["http-nio-8443"]
 java.io.IOException: Invalid keystore format
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:658)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
        at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
        at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
        at java.security.KeyStore.load(KeyStore.java:1445)

原因

  1. The keystore file has a proprietary format
  2. The property keystoreFile is not pointing to the correct file.

ソリューション

  1. Make sure you create the keystore file is created as described in Securing Bamboo with Tomcat using SSL 
  2. Set the keystoreFile connector property (at <Bamboo_Install>/conf/server.xml) as specified below:

        <Connector
            port="8443"

            maxThreads="150" minSpareThreads="25"
            connectionTimeout="20000"
            disableUploadTimeout="true"
            acceptCount="100"

            enableLookups="false"
            maxHttpHeaderSize="8192"

            useBodyEncodingForURI="true"
            URIEncoding="UTF-8"

            keystoreFile="<NEW_KEYSTORE_PATH>/.keystore"
            scheme="https" secure="true" SSLEnabled="true" sslProtocol="TLS"
            clientAuth="false"
        /> 
最終更新日: 2018 年 1 月 24 日

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

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