【发布时间】:2016-08-08 02:55:46
【问题描述】:
- 我有一个使用 CA 签名 SSL 证书配置的 Apache HTTP 服务器。
- 我正在使用 ProxyPass 将流量从 httpserver 端口 443 传输到 IBM Worklight 服务器http://localhost:9009
问题是该方法在 iOS 设备上运行良好,但在 Android 设备上我遇到了 ssl 握手问题。
(Thread.java:841)
04-16 05:30:51.950: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(31051): Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
04-16 05:30:51.950: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(31051): at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:282)
04-16 05:30:51.950: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(31051): at com.android.org.conscrypt.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:202)
04-16 05:30:51.950: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(31051): at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:612)
04-16 05:30:51.950: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(31051): at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
04-16 05:30:51.950: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(31051): at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:406)
04-16 05:30:51.950: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(31051): ... 13 more
04-16 05:30:51.950: E/com.worklight.androidgap.plugin.WLNativeXHRPlugin(31051): Caused by: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
【问题讨论】:
-
与工作灯无关。有关此错误,请参见此处您需要做什么:*.com/questions/2642777/…
-
谢谢。解决方案是在受信任的 Android 商店中手动添加您的证书。
标签: android sslhandshakeexception