class CertificateUtil {

    public static TrustManager[] createTrustManagers(String brokerCertificate, String alias) throws GeneralSecurityException,
            IOException {
        TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance("X509");
        trustManagerFactory.init(createKeyStore(brokerCertificate, alias));
        return trustManagerFactory.getTrustManagers();
    }

    private  CertificateUtil();

}