Created
March 30, 2016 13:35
-
-
Save mklimek/a623509f2c0a99096a4bc0bd71f7bf62 to your computer and use it in GitHub Desktop.
SslUtils - example usage
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
OkHttpClient client = new OkHttpClient(); | |
SSLContext sslContext = SslUtils.getSslContextForCertificateFile("BPClass2RootCA-sha2.cer"); | |
client.setSslSocketFactory(sslContext.getSocketFactory()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment