Legacy Knowledge Base
公開されました Jun. 30, 2025

JDK 11プロトコルTLSv1.3

Written By

Daniel Martinez Cisneros

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

JDK 11のデフォルトで使用されているTLSプロトコルのバージョンはTLSv1.3であり、サードパーティとの接続に影響を与える可能性がある:

  • -Dhttps.protocols=TLSv1.2 (Java 8 のデフォルト)
  • -Dhttps.protocols=TLSv1.3 (Java 11 のデフォルト)
  • -Dhttps.protocols=TLSv1.0 (default in older versions)

サードパーティと接続しようとすると、サポートされているプロトコルがリクエストに追加されます、

"supported_versions (43)": {
"versions": [TLSv1.3]
}

https での接続に関するすべての情報を表示するには、次のプロパティを追加します -Djavax.net.debug=ssl:handshake。

クライアントとサーバーのプロトコルが異なる場合、以下のエラーが表示されます:

Received fatal alert: handshake_failure

環境

  • Liferay DXP 7.3

解像度

この問題を解決するために、TLSプロトコルはこのプロパティを追加して設定することができる:

-Dhttps.protocols=TLSv1.2,TLSv1.3(https接続時のみ)

-Djdk.tls.client.protocols=TLSv1.2,TLSv1.3(あらゆる接続に対応)

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base