我在wso2 api manager 1.10.0中暴露了一些api,我发现通过android app访问这些api端点的问题。每当尝试通过应用程序访问时都会出现以下错误:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
05-20 16:16:31.881 20514-20641/com.accenture.mytelco W/System.err: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:430)
05-20 16:16:31.881 20514-20641/com.accenture.mytelco W/System.err: at com.android.okhttp.Connection.upgradeToTls(Connection.java:1014)
05-20 16:16:31.881 20514-20641/com.accenture.mytelco W/System.err: at com.android.okhttp.Connection.connect(Connection.java:955)
05-20 16:16:31.881 20514-20641/com.accenture.mytelco W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:411)
05-20 16:16:31.881 20514-20641/com.accenture.mytelco W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:343)
05-20 16:16:31.881 20514-20641/com.accenture.mytelco W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:289)
05-20 16:16:31.881 20514-20641/com.accenture.mytelco W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
05-20 16:16:31.881 20514-20641/com.accenture.mytelco W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:89)
05-20 16:16:31.881 20514-20641/com.accenture.mytelco W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:161)
任何人都可以建议如何解决它,请尽早回复。
答案 0 :(得分:0)
在此处提问之前,您是否搜索过互联网?当我进行谷歌搜索时,我发现了这一点。 Trust Anchor not found for Android SSL Connection
而且,Stackoverflow中还有许多其他帖子可以提供类似的问题。