禁用证书主机名验证

编程入门 行业动态 更新时间:2024-10-26 12:26:49
本文介绍了禁用证书主机名验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我今天刚开始使用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

更多推荐

禁用证书主机名验证

本文发布于:2023-10-10 12:10:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1478634.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:主机名   证书

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!