报SSL错误,怎么解决
kongzue 发布于2018-11-30 18:58 浏览:54 回复:1
0
收藏

集成语音合成的SDK,播放没反应报错:

W/System.err: javax.net.ssl.SSLHandshakeException: Unacceptable certificate: CN=GlobalSign Organization Validation CA - SHA256 - G2, O=GlobalSign nv-sa, C=BE
W/System.err: at com.android.org.conscrypt.ConscryptFileDescriptorSocket.startHandshake(ConscryptFileDescriptorSocket.java:229)
W/System.err: at com.android.org.conscrypt.ConscryptFileDescriptorSocket.waitForHandshake(ConscryptFileDescriptorSocket.java:473)
W/System.err: at com.android.org.conscrypt.ConscryptFileDescriptorSocket.getInputStream(ConscryptFileDescriptorSocket.java:436)
W/System.err: at org.apache.http.impl.io.SocketInputBuffer.<init>(SocketInputBuffer.java:75)
W/System.err: at org.apache.http.impl.SocketHttpClientConnection.createSessionInputBuffer(SocketHttpClientConnection.java:88)
W/System.err: at org.apache.http.impl.conn.DefaultClientConnection.createSessionInputBuffer(DefaultClientConnection.java:175)
W/System.err: at org.apache.http.impl.SocketHttpClientConnection.bind(SocketHttpClientConnection.java:112)
W/System.err: at org.apache.http.impl.conn.DefaultClientConnection.openCompleted(DefaultClientConnection.java:134)
W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
W/System.err: at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:170)
W/System.err: at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)
W/System.err: at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:366)
W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)
W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492)
W/System.err: at com.baidu.tts.loopj.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:146)
W/System.err: at com.baidu.tts.loopj.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:177)
W/System.err: at com.baidu.tts.loopj.AsyncHttpRequest.run(AsyncHttpRequest.java:107)
W/System.err: at com.baidu.tts.loopj.SyncHttpClient.sendRequest(SyncHttpClient.java:93)
W/System.err: at com.baidu.tts.loopj.AsyncHttpClient.post(AsyncHttpClient.java:1043)
W/System.err: at com.baidu.tts.auth.c.d(OnlineAuth.java:156)
W/System.err: at com.baidu.tts.auth.c.call(OnlineAuth.java:33)
W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/System.err: at com.baidu.tts.k.c.a(Memorizer.java:51)
W/System.err: at com.baidu.tts.auth.a$b.a(AuthClient.java:129)
W/System.err: at com.baidu.tts.auth.a$b.call(AuthClient.java:97)
W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/System.err: at java.lang.Thread.run(Thread.java:764)
W/System.err: Caused by: java.security.cert.CertificateException: Unacceptable certificate: CN=GlobalSign Organization Validation CA - SHA256 - G2, O=GlobalSign nv-sa, C=BE
W/System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:599)
W/System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:495)
W/System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:418)
W/System.err: at com.android.org.conscrypt.TrustManagerImpl.getTrustedChainForServer(TrustManagerImpl.java:339)
W/System.err: at android.security.net.config.NetworkSecurityTrustManager.checkServerTrusted(NetworkSecurityTrustManager.java:94)
W/System.err: at android.security.net.config.RootTrustManager.checkServerTrusted(RootTrustManager.java:88)
W/System.err: at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:208)
W/System.err: at com.android.org.conscrypt.ConscryptFileDescriptorSocket.verifyCertificateChain(ConscryptFileDescriptorSocket.java:404)
W/System.err: at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
W/System.err: at com.android.org.conscrypt.NativeSsl.doHandshake(NativeSsl.java:375)
W/System.err: at com.android.org.conscrypt.ConscryptFileDescriptorSocket.startHandshake(ConscryptFileDescriptorSocket.java:224)
W/System.err: ... 26 more
W/System.err: Caused by: java.security.cert.CertificateNotYetValidException: Certificate not valid until Thu Feb 20 18:00:00 GMT+08:00 2014 (compared to Thu Jan 01 14:54:11 GMT+08:00 2009)
W/System.err: at com.android.org.conscrypt.OpenSSLX509Certificate.checkValidity(OpenSSLX509Certificate.java:261)
W/System.err: at com.android.org.conscrypt.OpenSSLX509Certificate.checkValidity(OpenSSLX509Certificate.java:253)
W/System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:595)
W/System.err: ... 36 more

收藏
点赞
0
个赞
共1条回复 最后由fujiayi1984回复于2018-12-04 13:42
#2fujiayi1984回复于2018-12-04 13:42:36

请先测试demo,在正常的手机上

0
TOP
切换版块