<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="text/html; charset=utf-8">
</head>
<body>
<div id="compose-container" itemscope="" itemtype="https://schema.org/EmailMessage" style="direction:ltr">
<span itemprop="creator" itemscope="" itemtype="https://schema.org/Organization"><span itemprop="name"></span></span>
<div>
<div style="direction:ltr">Can you show your extended code?</div>
<div><br>
</div>
<div class="acompli_signature">
<div>Gruss</div>
<div>Bernd</div>
<div>-- </div>
<div><a dir="ltr" href="http://bernd.eckenfels.net">http://bernd.eckenfels.net</a></div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> undertow-dev-bounces@lists.jboss.org &lt;undertow-dev-bounces@lists.jboss.org&gt; on behalf of Steve Hu &lt;stevehu@gmail.com&gt;<br>
<b>Sent:</b> Monday, October 16, 2017 11:49:26 PM<br>
<b>To:</b> Undertow Developers<br>
<b>Subject:</b> [undertow-dev] Reverse proxy with https connections</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">I am extending the ReverseProxyServer example to connect down stream servers that listen to https and got the following error on the proxy server. After debugging into it, I realized that the ssl is null when UndertowClient tries to create connection
 to the downstream server.
<div><br>
</div>
<div>I am wondering who is responsible for creating this ssl object. Where the certificates should be loaded?
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Steve<br>
<div><br>
</div>
<div>
<div>proxy_1 &nbsp;| 17:37:12.430 [XNIO-1 I/O-4] &nbsp; DEBUG io.undertow.request failed - Failed to connect</div>
<div>proxy_1 &nbsp;| java.io.IOException: UT000065: SSL must be specified to connect to a https URL</div>
<div>proxy_1 &nbsp;| <span class="gmail-Apple-tab-span" style="white-space:pre"></span>at io.undertow.client.http.HttpClientProvider.connect(HttpClientProvider.java:94)</div>
<div>proxy_1 &nbsp;| <span class="gmail-Apple-tab-span" style="white-space:pre"></span>at io.undertow.client.UndertowClient.connect(UndertowClient.java:157)</div>
<div>proxy_1 &nbsp;| <span class="gmail-Apple-tab-span" style="white-space:pre"></span>at io.undertow.server.handlers.proxy.ProxyConnectionPool.openConnection(ProxyConnectionPool.java:273)</div>
<div>proxy_1 &nbsp;| <span class="gmail-Apple-tab-span" style="white-space:pre"></span>at io.undertow.server.handlers.proxy.ProxyConnectionPool.connect(ProxyConnectionPool.java:527)</div>
<div>proxy_1 &nbsp;| <span class="gmail-Apple-tab-span" style="white-space:pre"></span>at io.undertow.server.handlers.proxy.LoadBalancingProxyClient.getConnection(LoadBalancingProxyClient.java:301)</div>
<div>proxy_1 &nbsp;| <span class="gmail-Apple-tab-span" style="white-space:pre"></span>at io.undertow.server.handlers.proxy.ProxyHandler$ProxyClientHandler.run(ProxyHandler.java:292)</div>
<div>proxy_1 &nbsp;| <span class="gmail-Apple-tab-span" style="white-space:pre"></span>at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:582)</div>
<div>proxy_1 &nbsp;| <span class="gmail-Apple-tab-span" style="white-space:pre"></span>at org.xnio.nio.WorkerThread.run(WorkerThread.java:466)</div>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>