Having some more reading and testing the protocol required by the server site is TLS v1.2 but this protocol is supported but not default on android 16+ <= API <= 21 so when the sslSocket is created it needs to force TLS v1.2 with something like :
private Socket patch(Socket s) {
if (s instanceof SSLSocket) {
((SSLSocket) s).setEnabledProtocols("TLSv1.2");
}
return s;
}
There is a
thread which has come up with a java solution, will I have to create my own version of OkHttp using their methods or is there a simpler way of modifying the stock OKHttp to do this?
Edward