public static void addHttp2Properties(Properties properties, SSLFactory.Mode mode, boolean sslHttp2SelfSign) {

    if (mode == SSLFactory.Mode.SERVER) {
      properties.setProperty("rest.server.rest.request.service.factory",
          "com.github.ambry.server.StorageRestRequestService");
      properties.setProperty("rest.server.nio.server.factory", "com.github.ambry.rest.StorageServerNettyFactory");
      properties.setProperty("ssl.client.authentication", "required");
      properties.setProperty("server.enable.store.data.prefetch", "true");
    }
    properties.setProperty("ssl.http2.self.sign", Boolean.toString(sslHttp2SelfSign));
  }
Setup HTTP2 server related properties. The method should be called after
{@link TestSSLUtils#addSSLProperties(Properties, String, SSLFactory.Mode, File, String)}
@param properties the {@link Properties} instance.
@param mode whether to generate the "client" or "server" certificate.
@param sslHttp2SelfSign whether cert is self signed or not.
ambry-test-utils/src/main/java/com/github/ambry/commons/TestSSLUtils.java