【发布时间】:2013-10-23 03:56:58
【问题描述】:
我需要配置一个 wso2 ESB 代理服务来连接通过 HTTPS 公开的后端服务。为此,我需要插入并配置随身携带的 SSL 证书。
目前我所做的是在 wso2esb-\repository\resources\security 文件夹中包含 wso2carbon.jks 和 client-truststore.jks 的证书,并将自定义配置文件添加到 wso2esb-中的axis2.xml \repository\conf\axis2 文件夹。
但是当我尝试在添加到基于 wsdl 的代理时测试 URL 时,它会在控制台中出现以下异常。
ERROR - ProxyServiceAdminClient Couldn't create endpoint from the given WSDL URI : java.security.cert.CertificateException: No name matching localhost found
org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminProxyAdminException: Couldn't create endpoint from the given WSDL URI : java.security.cer
t.CertificateException: No name matching localhost found
【问题讨论】:
-
你能解决这个问题吗?
-
嗨 Sumedha 我已经尝试过了,最终解决的问题是避免使用 CN 的 IP 地址,并在密钥库中使用与别名相同的 CN。我已经写了关于解决方案的博客sahanlm.tumblr.com/post/65311719934/…。
标签: java web-services ssl wso2 wso2esb