Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am f2prateek on github.
  • I am f2prateek (https://keybase.io/f2prateek) on keybase.
  • I have a public key whose fingerprint is 39D2 2AF2 9FEA AE17 31BD 0B29 6D58 B458 1842 C429

To claim this, I am signing this object:

@f2prateek
f2prateek / TLSSocketFactory.java
Last active July 17, 2019 22:09 — forked from fkrauthan/TLSSocketFactory.java
Custom SSLSocketFactory Implementation to enable tls 1.1 and tls 1.2 for android 4.1 (16+)
package net.cogindo.ssl;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import javax.net.ssl.SSLContext;