java 如何在 Web 逻辑中为传出 https 事务启用 TLS 1.2 版

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/40274507/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 05:05:40  来源:igfitidea点击:

How to enable TLS version 1.2 in web logic for outgoing https transactions

javasslweblogic12cjsseibm-jdk

提问by smallarv

I am working on one project which require TLS version 1.2 to be enabled on web logic server for outgoing https transactions. I tried using below properties in web logic startup script : Weblogic.security.SSL.minimumProtocolVersion=TLSv1.2 Or Weblogic.security.SSL.protocolVersion=TLS

我正在开发一个项目,该项目需要在 Web 逻辑服务器上为传出 https 事务启用 TLS 1.2 版。我尝试在 web 逻辑启动脚本中使用以下属性: Weblogic.security.SSL.minimumProtocolVersion=TLSv1.2 或 Weblogic.security.SSL.protocolVersion=TLS

But when I ran some test I was able to see TLSv1 still getting used in the clientHello message in weblogic SSL logs. We tried every permutation and combination to start the TLS handshake with TLSv1.2 but no success so far.

但是当我运行一些测试时,我能够看到 TLSv1 仍在 weblogic SSL 日志中的 clientHello 消息中使用。我们尝试了每一种排列组合来开始与 TLSv1.2 的 TLS 握手,但到目前为止都没有成功。

When we enabled sun based http handler in weblogic and used below property in startup script, I was able to use TLSv1.2 -DUseSunHttpHandler=true -Dhttps.protocols=TLSv1.2

当我们在 weblogic 中启用基于 sun 的 http 处理程序并在启动脚本中使用以下属性时,我能够使用 TLSv1.2 -DUseSunHttpHandler=true -Dhttps.protocols=TLSv1.2

My question is how to enable TLSv1.2 in weblogic 12c version with IBM java 1.7 SR9 for outgoing https transactions when using weblogic http connection classes instead of sun based http classes?

我的问题是,当使用 weblogic http 连接类而不是基于 sun 的 http 类时,如何在带有 IBM java 1.7 SR9 的 weblogic 12c 版本中为传出 https 事务启用 TLSv1.2?

回答by Suresh Ram

You can enable TLSv1.2 for Outgoing connection from Weblogic.

您可以为来自 Weblogic 的传出连接启用 TLSv1.2。

Under the managed servfer, Server Startup in the arguments add as below

在 managed servfer 下,Server Startup 在参数中添加如下

-Djdk.tls.client.protocols=TLSv1.2

-Djdk.tls.client.protocols=TLSv1.2

回答by Nasser Ebrahim

You have to -DUseSunHttpHandler=true with IBM JDK as well for Weblogic. Otherwise, it will pick the default http handler, weblogic.net.http.HttpsURLConnection.

对于 IBM JDK 以及 Weblogic,您必须使用 -DUseSunHttpHandler=true。否则,它将选择默认的 http 处理程序 weblogic.net.http.HttpsURLConnection。

You can find the details at http://www-01.ibm.com/support/docview.wss?uid=swg27046674.

您可以在http://www-01.ibm.com/support/docview.wss?uid=swg27046674找到详细信息。