-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help ! ! ! ! ! ! com.android.org.conscrypt.OpenSSLSessionImpl cannot be cast to com.android.org.conscrypt.SSLSessionImpl #363
Comments
I'm check the android source code ,ClientHandshakeImpl : context.getSession(host, port) //return opensslsessionimpl , how to change the session to sslsessionimpl |
same problem with me |
Hello @SteveMobile and @vinod1054, is this still an issue with the current version 1.3.2? Greetings |
No update for months. Greetings |
@marci4 I'm seeing this issue as well, when I use your library on Android SDK 19 (Which doesnt support TLS 1.2 by default). I have tried enabling TLS 1.2 as well but it doesnt seem to work.
Any suggestions on how to fix this? |
Help ! ! ! ! ! !
java.lang.ClassCastException: com.android.org.conscrypt.OpenSSLSessionImpl cannot be cast to com.android.org.conscrypt.SSLSessionImpl
01-07 21:22:40.320 29089-31249/com.ringcentral.glip W/System.err: at com.android.org.conscrypt.ClientHandshakeImpl.findSessionToResume(ClientHandshakeImpl.java:596)
01-07 21:22:40.320 29089-31249/com.ringcentral.glip W/System.err: at com.android.org.conscrypt.ClientHandshakeImpl.start(ClientHandshakeImpl.java:74)
01-07 21:22:40.320 29089-31249/com.ringcentral.glip W/System.err: at com.android.org.conscrypt.SSLEngineImpl.beginHandshake(SSLEngineImpl.java:118)
01-07 21:22:40.320 29089-31249/com.ringcentral.glip W/System.err: at com.android.org.conscrypt.SSLEngineImpl.wrap(SSLEngineImpl.java:587)
01-07 21:22:40.320 29089-31249/com.ringcentral.glip W/System.err: at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:462)
01-07 21:22:40.320 29089-31249/com.ringcentral.glip W/System.err: at org.java_websocket.SSLSocketChannel2.wrap(SSLSocketChannel2.java:141)
01-07 21:22:40.320 29089-31249/com.ringcentral.glip W/System.err: at org.java_websocket.SSLSocketChannel2.(SSLSocketChannel2.java:74)
01-07 21:22:40.330 29089-31249/com.ringcentral.glip W/System.err: at org.java_websocket.client.DefaultSSLWebSocketClientFactory.wrapChannel(DefaultSSLWebSocketClientFactory.java:40)
01-07 21:22:40.330 29089-31249/com.ringcentral.glip W/System.err: at org.java_websocket.client.WebSocketClient.interruptableRun(WebSocketClient.java:242)
01-07 21:22:40.330 29089-31249/com.ringcentral.glip W/System.err: at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:219)
01-07 21:22:40.330 29089-31249/com.ringcentral.glip W/System.err: at java.lang.Thread.run(Thread.java:841)
the code
TrustManager[] trustAllCerts = new TrustManager[]{new X509TrustManager() {
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
return new java.security.cert.X509Certificate[]{};
}
The text was updated successfully, but these errors were encountered: