private SslConnectionFactory createSslConnectionFactory(KeyStoreInformation config) {
    SslContextFactory sslContextFactory = new SslContextFactory();

    sslContextFactory.setKeyStorePath(config.getKeyStorePath());
    sslContextFactory.setKeyStorePassword(String.valueOf(config.getKeyStorePassword()));
    sslContextFactory.setKeyManagerPassword(String.valueOf(config.getKeyPassword()));

    return new SslConnectionFactory(sslContextFactory, HttpVersion.HTTP_1_1.asString());
  }