static SSLFactory getTestSSLFactory() {
    try {
      File trustStoreFile = File.createTempFile("truststore", ".jks");
      trustStoreFile.deleteOnExit();
      return SSLFactory.getNewInstance(
          new SSLConfig(TestSSLUtils.createSslProps("", SSLFactory.Mode.SERVER, trustStoreFile, "frontend")));
    } catch (Exception e) {
      throw new IllegalStateException(e);
    }
  }
@return an {@link SSLFactory} for use in rest unit tests.
ambry-rest/src/test/java/com/github/ambry/rest/RestTestUtils.java