Skip to content

Instantly share code, notes, and snippets.

@mklimek
Created March 30, 2016 13:35
Show Gist options
  • Save mklimek/a623509f2c0a99096a4bc0bd71f7bf62 to your computer and use it in GitHub Desktop.
Save mklimek/a623509f2c0a99096a4bc0bd71f7bf62 to your computer and use it in GitHub Desktop.
SslUtils - example usage
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