gpt4 book ai didi

java - 尝试使用部署在 WebSphere 中的 Java REST Web 服务。我收到 SSLHandshakeException

转载 作者:太空宇宙 更新时间:2023-11-04 06:12:01 27 4
gpt4 key购买 nike

我正在尝试使用部署在 WebSphere 中的 Java REST Web 服务。我收到错误 500:java.lang.RuntimeException:javax.net.ssl.SSLHandshakeException:收到致命警报:handshake_failure。

如何解决此错误。

function postAjax() {
var dataTemp=JSON.stringify({userName: "xxxxxx",password: "xxxxxx",feedUrl: "xxxxxx"});
$.ajax({
url:'http://domain-name:9080/Context/service/myService',
type:'post',
contentType: 'application/json',
dataType: 'json',
data: dataTemp,
success: function(data) {

}
});
}

最佳答案

您需要将您正在通信的服务器的 SSL 证书安装到 java 的 keystore 中。

这里已经有了答案:How to solve javax.net.ssl.SSLHandshakeException Error?

关于java - 尝试使用部署在 WebSphere 中的 Java REST Web 服务。我收到 SSLHandshakeException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28585167/

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