如何获取详细的异常消息?(SSLHandskaheException)

时间:2015-05-09 12:21:29

标签: java android exception ssl sslhandshakeexception

我在.artist_name中使用SSLHandshakeException HttpsUrlConnection

Android 5.0 lollipop

我搜索了有关解决05-05 14:54:08.821 10855-11793/com.soonoo.mobilecampus E/INFO﹕ javax.net.ssl.SSLHandshakeException: Handshake failed at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:374) at com.android.okhttp.Connection.upgradeToTls(Connection.java:238) at com.android.okhttp.Connection.connect(Connection.java:158) at com.android.okhttp.Connection.connect(Connection.java:170) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:309) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:242) at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:388) at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:118) at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:220) at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218) at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25) at com.soonoo.mobilecampus.User.login(User.java:72) at com.soonoo.mobilecampus.LoginView$Login.doInBackground(LoginView.java:112) at com.soonoo.mobilecampus.LoginView$Login.doInBackground(LoginView.java:84) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818) Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xaaaf8a00: Failure in SSL library, usually a protocol error error:1407743E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert inappropriate fallback (external/openssl/ssl/s23_clnt.c:765 0xa9295b25:0x00000000) at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method) at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:302) ... 19 more 的解决方案,但我认为在网络上没有适当的解决方案。(我在StackOverflow中尝试了几乎所有答案等。)

阅读关于HTTP的书(http://shop.oreilly.com/product/9781565925090.do),我发现在SSLHandshakeException: Handshake failed

的过程中发生了以下事情
  1. 交换协议版本号
  2. 选择密码套件
  3. 验证服务器/客户端
  4. 由于“异常”消息仅显示handshake,因此我应该如何解决此问题。所以我想知道我的申请究竟出了什么问题。

    我可以获得更详细的异常消息吗?

0 个答案:

没有答案