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.