In https://github.com/undertow-io/undertow/blob/master/examples/src/main/java/io/undertow/examples/http2/Http2Server.java a LoadBalancingProxyClient and a reverse proxy server are being used to proxy HTTPS, but is all of that necessary?

I'm attempting to proxy from my current code:

SimpleProxyClientProvider proxyClient = new SimpleProxyClientProvider(uri);
ProxyHandler proxyHandler = Handlers.proxyHandler(proxyClient);

To add support to proxy SSL. The proxying is local and both the originating server and the server being proxied to are using the exact same SSL certificate.  Is there something I can add to this to make it work right, or do I have to create a LoadBalancingProxyClient?