class CertificateUtil {

    public static KeyManager[] createKeyManagers(String clientCertificate, String alias) throws GeneralSecurityException, IOException {
        final KeyStore clientKs = createKeyStore(clientCertificate, alias);

        // create Key Manager
        KeyManagerFactory kmFactory = KeyManagerFactory.getInstance("PKIX");
        kmFactory.init(clientKs, null);
        return kmFactory.getKeyManagers();
    }

    private  CertificateUtil();

}