Created
August 19, 2015 20:11
-
-
Save cfirmo33/968a47bbd93f84a97a6c to your computer and use it in GitHub Desktop.
getSSLSocket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static MySSLSocketFactory getSSLSocket(){ | |
MySSLSocketFactory sf = null; | |
try { | |
KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType()); | |
trustStore.load(null, null); | |
sf = new MySSLSocketFactory(trustStore); | |
sf.setHostnameVerifier(MySSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); | |
}catch (Exception e) { | |
Log.e("ERROR", e.getMessage() ); | |
} | |
return sf; | |
} |
Author
cfirmo33
commented
Aug 19, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment