gpt4 book ai didi

java - Java 6 中的客户端,用于 tls 上的 doint http post

转载 作者:太空宇宙 更新时间:2023-11-03 13:47:36 24 4
gpt4 key购买 nike

我使用了一个支付网关,我正在向其发送 http post。现在支付网关已经更改为tlsv1.2。我可以在 tls v1.2 中从 java 代码执行 http POST 吗??

我目前使用的是 java 1.6,服务器是 tomcat。

消息人士说我必须转移到 1.7 ..这是真的吗??

谁能指导我如何通过 tls v1.2 进行 httpPost

欢迎任何关于相同的引用

最佳答案

Sources say I have to move to 1.7 .. Is it true ??

是的,您必须升级到 1.7,因为 JDK6 仅支持 TLSv1。

Supported TLS protocols by JDK version

比照。 https://blogs.oracle.com/java-platform-group/entry/diagnosing_tls_ssl_and_https

注意 TLSv1.1 和 TLS1.2 是 by default not enabled for client connections在 1.7 中(它们在 1.8 中):

Although SunJSSE in the Java SE 7 release supports TLS 1.1 and TLS 1.2, neither version is enabled by default for client connections. Some servers do not implement forward compatibility correctly and refuse to talk to TLS 1.1 or TLS 1.2 clients. For interoperability, SunJSSE does not enable TLS 1.1 or TLS 1.2 by default for client connections.

关于java - Java 6 中的客户端,用于 tls 上的 doint http post,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30980460/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com