public void fixHttpsURLConnection(){
  HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
}

public void fixHttpsURLConnection ( ) { HttpsURLConnection . setDefaultSSLSocketFactory ( sslContext . getSocketFactory ( ) ) ; }
makes httpsurlconnection trusts a set of certificates specified by the keystore
