validation - WSO2 API 管理器 "unable to find valid certification path to requested target {org .wso2.carbon.apimgt.hostobjects.APIProviderHostObject}"

标签 validation ssl wso2 wso2-api-manager

我们已经部署了一个 WSO2 API 管理器来公开系统的 API。当我们发布带有 https 目标端点的 API 时(例如:https://abc.d.e :),请求失败并出现以下异常。

TID: [-1234] [] [2017-06-26 06:46:43,226] ERROR {org.wso2.carbon.apimgt.hostobje
cts.APIProviderHostObject} -  Error occurred while connecting to backend : https
://list-micro.aws.na.sysco.net:9090, reason : sun.security.validator.ValidatorEx
ception: PKIX path building failed: sun.security.provider.certpath.SunCertPathBu
ilderException: unable to find valid certification path to requested target {org
.wso2.carbon.apimgt.hostobjects.APIProviderHostObject}
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderExce
ption: unable to find valid certification path to requested target
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.
java:1514)
        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.jav
a:216)
        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
        at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)

最佳答案

Wso2/Carbon 使用 Java 8 .. 请记住,显然 SSL 客户端不能很好地削减 SNI。因此,如果您在 1 个 IP 地址上使用多个证书,这可能是问题所在:

http://javabreaks.blogspot.com/2015/12/java-ssl-handshake-with-server-name.html

关于validation - WSO2 API 管理器 "unable to find valid certification path to requested target {org .wso2.carbon.apimgt.hostobjects.APIProviderHostObject}",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44754711/

相关文章:

java - 模式 20+99 的正则表达式验证

python - 如何根据 Fastapi Pydantic 模型中的特定 Enum 成员进行验证

python - Django AllAuth 给出 SSLError

WSO2-AS 传递日期以创建 solr 日期格式时出错.java.text.ParseException

wso2 - 如何正确使用WSO2产品?

api - WSO2:将调用者的IP地址传递给后端

html - 使用 html5 和取消按钮的 Symfony2 表单验证

arrays - Mongoose 模式需要可以为空的数组

ssl - Cloudflare 和 Heroku 之间的加密

iphone - 将自签名证书添加到 iPhone 模拟器?