如何使Android平台上的SSL调试? [英] How to enable SSL debugging on the Android platform?
问题描述
有没有类似的设置 -D javax.net.debug = SSL
在的Java桌面应用程序的命令行的东西,但对于Android的?我试着通过 System.setProperty将其设置在code(javax.net.debug,SSL);
,但没有奏效<。 / P>
如果没有一种方法,使这个属性,有至少另一种方式的SSL连接的客户端调试?
编辑:我想弄清楚,这指的是原始的SSL套接字(SSLSocket和SSLSocketFactory的),而不是Apache的库或任何其他网络库
在这一点上,似乎并不成为一个办法做到这一点。但在任何情况下,我们切换到Netty的图书馆很快里面有详细的日志记录功能,打造
所以,(不是很大),解决这个问题是根本不使用SSLSocket,而是利用一个更好的网络库,而不是。
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 via System.setProperty("javax.net.debug", "ssl");
but that didn't work.
If there isn't a way to enable this property, is there at least another way to debug the client side of an SSL connection?
EDIT: Just to clarify, this is referring to raw SSL sockets (SSLSocket and SSLSocketFactory), not the Apache library or any other network library.
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.
这篇关于如何使Android平台上的SSL调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!