How to enable SSL debugging on the Android platform?

前端 未结 4 1163
北海茫月
北海茫月 2021-02-04 04:59

Is there something similar to setting -D javax.net.debug=ssl at the command line for Java desktop applications, but for the Android? I\'ve tried setting it in code

4条回答
  •  半阙折子戏
    2021-02-04 05:46

    At this point, there just doesn't seem to be a way to do this. But in any case, we're switching to the Netty library soon which has more detailed logging capabilities build in.

    So the (not great) solution to this issue is simply not to use SSLSocket, but to use a better network library instead.

提交回复
热议问题