证书中的主机名不匹配:<>!=<>WSO2 APIM [英] hostname in certificate didn't match:<>!=<> WSO2 APIM

查看:18
本文介绍了证书中的主机名不匹配:<>!=<>WSO2 APIM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 https 端点,我需要从 wso2 API 管理器访问它.(使用 1.10).我已经将证书文件添加到client-truststore.jks"文件中.但是现在报错如下.

I have a https endpoint and I need to access it from wso2 API manager. (uses 1.10).I already added the certificate files to "client-truststore.jks" file. But now it gives an error as follows.

 hostname in certificate didn't match:<ip>!=<entry name>. 

我也已经更新了axis2.xml文件如下.

I have already updated the axis2.xml file as follows also.

<parameter name="HostnameVerifier">AllowAll</parameter>

如何使用 WSO2 APIManager 解决此问题以访问此 https 后端服务

How can I solve this issue with WSO2 APIManager to access this https backend service

推荐答案

证书的 CN 应与 URL 的主机名匹配.当它们不匹配时,您会得到上述错误.

The CN of the certificate should match with the hostname of the URL. You get above error when they don't match.

这篇关于证书中的主机名不匹配:&lt;&gt;!=&lt;&gt;WSO2 APIM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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