title: Set SSL connection for CachingConnectionFactory
body: <p>I want to set SSL connection factory for CachingConnectionFactory. I tried this:</p>
  
  <pre><code>com.rabbitmq.client.ConnectionFactory cf = new ConnectionFactory();
  cf.setHost(HOST);
  cf.setPort(PORT);
  cf.setUsername(USERNAME);
  cf.setPassword(PASSWD);
  cf.setVirtualHost(VIRTUAL_HOST);
  cf.setAutomaticRecoveryEnabled(false);
  cf.setConnectionTimeout(10000);
  if (useSSL) {
      try {
          cf.useSslProtocol(sslContextConfiguration());
          System.out.println("Configuring SSL context...");
          } catch (IOException | TimeoutException e) {
          e.printStackTrace();
          }
  }
  connectionFactory = new CachingConnectionFactory(cf);
  connectionFactory.setAddresses(ADDRESSES);
  connectionFactory.setChannelCacheSize(25);
  admin = new RabbitAdmin(connectionFactory);
  </code></pre>
  
  <p>So far the only solution that I found is to set <code>useSslProtocol</code> for <code>com.rabbitmq.client.ConnectionFactory</code> and set it to <code>CachingConnectionFactory(cf)</code>.</p>
  
  <p>Is there some better way?</p>