我今天刚开始使用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.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.
pic.dhe.ibm/infocenter/wrklight/v5r0m5/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fadmin%2Ft_ibm_worklight_server_and_self-signed_certificates.html
更多推荐
禁用证书主机名验证
发布评论