public static X509ExtendedTrustManager createDefaultX509TrustManager(List<X509Certificate> certificates) {
        return createDefaultX509TrustManager(
                KeyStoreBuilder.withType(KeyStoreType.PKCS12)
                        .withCertificateEntries("cert", certificates)
                        .build());
    }
Utility methods for constructing {@link X509ExtendedTrustManager}.

@author bjorncs
security-utils/src/main/java/com/yahoo/security/TrustManagerUtils.java