public static OkHttpClient createClient(boolean trustAll) {
        OkHttpClient client = new OkHttpClient();
        if (trustAll) {
            client.setHostnameVerifier(OkHttpUtils.getUnsafeHostnameVerifier());
            client.setSslSocketFactory(OkHttpUtils.getUnsafeSslSocketFactory());
        }
        return client;
    }
OkHttp client utilities.

@author Marc Savy {@literal <marc@blackparrotlabs.io>}
migration-assistant/src/main/java/io/apiman/migration/util/OkHttpUtils.java