code: private Client createSLLClient(ClientConfig clientConfig)
  			throws KeyManagementException, NoSuchAlgorithmException {
  		TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {
  			public X509Certificate[] getAcceptedIssuers() {
  				return null;
  			}
  
  			public void checkClientTrusted(X509Certificate[] certs, String authType) {
  			}
  
  			public void checkServerTrusted(X509Certificate[] certs, String authType) {
  			}
  		} };
  
  		SSLContext sc = SSLContext.getInstance("TLS");
  		sc.init(null, trustAllCerts, new SecureRandom());
  		HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
  
  		ClientBuilder.newClient(clientConfig);
  
  		Client client = ClientBuilder.newBuilder()
  				.sslContext(sc)
  				.hostnameVerifier(new HostnameVerifier() {
  					public boolean verify(String s, SSLSession sslSession) {
  						return true;
  					}
  				})
  				.withConfig(clientConfig).build();
  
  		return client;
  	}
docs: Creates the sll client.
  
  @param clientConfig
  the client config
  @return the client config
  @throws KeyManagementException
  the key management exception
  @throws NoSuchAlgorithmException
  the no such algorithm exception