Skip to content

Instantly share code, notes, and snippets.

View develodroid's full-sized avatar
🎯
Focusing

Chema Rubio develodroid

🎯
Focusing
View GitHub Profile
//start with a broken configuration:
String hostname = “publicobject.com”;
CertificatePinner certificatePinner = new CertificatePinner.Builder()
.add(hostname, “sha1/AAAAAAAAAAAAAAAAAAAAAAAAAAA=”)
.build();
OkHttpClient client = new OkHttpClient();
client.setCertificatePinner(certificatePinner);