/** * Configuration helper used to ignore any SSL certificate-related issues by configuring an `SSLContext` that allows everything. * * [source,groovy] * ---- * def http = JavaHttpBuilder.configure { * ignoreSslIssues(execution) * } * ---- * * This will inject the correct configuration to set the `sslContext` and `hostnameVerifier` - these configuration properties should not * be directly specified when this method is applied. * * @param execution the {@link HttpObjectConfig.Execution} instance */ public static void ignoreSslIssues(final HttpObjectConfig.Execution execution){ execution.setSslContext(acceptingSslContext()); execution.setHostnameVerifier(ANY_HOSTNAME); }
/** * Configuration helper used to ignore any SSL certificate-related issues by configuring an `SSLContext` that allows everything. * * [source,groovy] * ---- * def http = JavaHttpBuilder.configure { * ignoreSslIssues(execution) * } * ---- * * This will inject the correct configuration to set the `sslContext` and `hostnameVerifier` - these configuration properties should not * be directly specified when this method is applied. * * @param execution the {@link HttpObjectConfig.Execution} instance */ public static void ignoreSslIssues(final HttpObjectConfig.Execution execution){ execution.setSslContext(acceptingSslContext()); execution.setHostnameVerifier(ANY_HOSTNAME); }