public static void enableSSLValidation() {
    try {
      SSLContext.getInstance("SSL").init(null, null, null);
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
public static void enableSSLValidation ( ) { try { SSLContext . getInstance ( "SSL" ) . init ( null , null , null ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
Enable SSL Validation.