【发布时间】:2020-01-14 11:54:02
【问题描述】:
在尝试为 API 配置 Mutual SSL 时,抛出以下错误:
TID: [-1234] [] [2020-01-14 11:43:09,542] ERROR {org.wso2.carbon.apimgt.gateway.handlers.security.authenticator.MutualSSLAuthenticator} - Mutual SSL authentication failure
TID: [-1234] [] [2020-01-14 11:43:09,544] WARN {org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler} - API authentication failure due to Invalid Credentials
<ams:fault xmlns:ams="http://wso2.org/apimanager/security"><ams:code>900901</ams:code><ams:message>Invalid Credentials</ams:message><ams:description>Invalid Credentials. Make sure you have provided the correct security credentials</ams:description></ams:fault>
对于这个 API,只有“传输级安全”是强制性的,而“应用级安全”是可选的。请告知如何在 wso2 API Manager 3.0.0 上实现相互 SSL
【问题讨论】:
-
这可能是由于没有在请求中发送证书。你能确认一下吗?
-
在这个设置中,nginx 作为 wos2 api manager 的代理服务器。在 Nginx 上也启用了 SSL。使用在 nginx 上配置的证书以及 wso2carbon.jks 中存在的 wso2 默认证书(localhost)进行测试