Skip to content

Instantly share code, notes, and snippets.

View ex0b1t's full-sized avatar
👨‍💻
Always Coding

Jaco Botha ex0b1t

👨‍💻
Always Coding
View GitHub Profile
@HughJeffner
HughJeffner / CompositeX509TrustManager.java
Last active June 9, 2022 21:01
Trust both system KeyStore and custom KeyStore on Android
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.Arrays;
import java.util.List;