legacy-knowledge-base
公開されました Jul. 2, 2025

"IOException: parseAlgParameters failed:JDK の上位メジャーバージョンで生成した PKCS#12 証明書で Elasticsearch への接続を確保した後、起動時に "ObjectIdentifier()" エラーが発生する。

written-by

Matheus Monteiro

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Elasticsearch への接続を確保した後、より具体的には、Liferay DXP を実行している JDK よりも高いメジャーバージョンを持つ JDK で keytool を使用して Elasticsearch 証明書 .p12 を生成した後、Liferay DXP は起動しない。 例えばLiferay DXP は JDK8 を使用しており、あなたは JDK11 を使用して Elasticsearch の証明書を生成しています。
  • 表示されるエラーは
    The activate method has thrown an exception

    java.lang.RuntimeException: java.io.IOException: parseAlgParameters failed: ObjectIdentifier() -- data isn't an object ID (tag = 48)

    at com.liferay.portal.search.elasticsearch7.internal.connection.RestHighLevelClientFactory.createSSLContext(RestHighLevelClientFactory.java:172)

環境

  • JDK バージョン 8 を使用する Liferay DXP
  • JDK バージョン 8 以上で生成された PKCS#12 証明書 (.p12)。

解像度

これはJDKのバグです。 以下のことが可能です。

  • A.) LiferayとElasticsearchの両サーバーで同じバージョンのJDKを使用する。
  • B.) 鍵屋にPKCS12ではなくJKS形式を使用する

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base