https://github.com/igniterealtime/jbosh/blob/master/src/main/java/org/ignitereal time/jbosh/ApacheHTTPSender.java
line 146: SSLSocketFactory sslFactory = SSLSocketFactory.getSocketFactory();
There should be a check for “config” if specified any customSSLFactory and customSSLContext
Otherwise it may become very difficult while using SSL with android keystore