【问题标题】:Trying to consume Java REST web service which was deployed in WebSphere.I am getting SSLHandshakeException尝试使用部署在 WebSphere 中的 Java REST Web 服务。我收到 SSLHandshakeException
【发布时间】:2015-04-19 13:06:00
【问题描述】:

我正在尝试使用部署在 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) { 

         }  
     });  
     }

【问题讨论】:

    标签: java html websphere restful-url


    【解决方案1】:

    您需要将正在与之通信的服务器的 SSL 证书安装到 java 的密钥库中。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-18
      • 1970-01-01
      • 2012-11-07
      • 2015-12-11
      相关资源
      最近更新 更多