禁用证书主机名验证 [英] Disabling certificate hostname verification

查看:427
本文介绍了禁用证书主机名验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天刚开始使用worklight并尝试连接RESTFul API。服务器(我不拥有)我想使用带有自签名证书的ssl。我按照worklight文档中定义的过程在我的cacert中导入了证书。

I just started today with worklight and try to connect a RESTFul API. The server (which I don't own) I would like to reach use ssl with a self-signed certificate. I imported the certificate in my cacert following the procedure defined in the worklight documentation.

现在,当我尝试RESTFul API时出现以下错误:

Now, I have the following error when I try the RESTFul API:

"errors": [ "Runtime: Http request failed: javax.net.ssl.SSLException:
    hostname in certificate didn't match:

在许多http java实现中,有一种方法可以禁用主机名验证,但是找不到它如何在使用worklight时这样做。

In many http java implementation there is a way to disable the hostname verification but don't find it how to do it when using worklight.

任何提示?

因为这个问题已经关闭了关于主题,你能告诉我在哪里发布问题并获得IBM Worklight的支持吗?
非常感谢

As this question has been close because it is off topic, could you tell me where I post questions and get support on IBM Worklight? Many Thanks

推荐答案

参见本文涉及自签名证书。

See this article regardin self signed certificates.

http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m5/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fadmin%2Ft_ibm_worklight_server_and_self-signed_certificates.html

这篇关于禁用证书主机名验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆