code: public static SSLHandlerFactory createRestClientSSLEngineFactory(final Configuration config) throws Exception {
  		SSLContext sslContext = createRestClientSSLContext(config);
  		if (sslContext == null) {
  			throw new IllegalConfigurationException("SSL is not enabled for REST endpoints.");
  		}
  
  		return new SSLHandlerFactory(
  				sslContext,
  				getEnabledProtocols(config),
  				getEnabledCipherSuites(config),
  				true,
  				isRestSSLAuthenticationEnabled(config),
  				-1,
  				-1);
  	}
docs: Creates a {@link SSLHandlerFactory} to be used by the REST Clients.
  
  @param config The application configuration.