<div dir="ltr">Try the constructor with 4 args where you also pass a handler.<div><br></div><div>







<p class="gmail-p1">        <span class="gmail-s1">public</span> <span class="gmail-s2">Builder</span> addHttpsListener(<span class="gmail-s1">int</span> <span class="gmail-s3">port</span>, <span class="gmail-s2">String</span> <span class="gmail-s3">host</span>, <span class="gmail-s2">SSLContext</span> <span class="gmail-s3">sslContext</span>, <span class="gmail-s4">HttpHandler</span> <span class="gmail-s3">rootHandler</span>) {</p><p class="gmail-p1"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 8, 2016 at 8:06 PM, Hicks, Matt <span dir="ltr">&lt;<a href="mailto:matt@matthicks.com" target="_blank">matt@matthicks.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr" class="m_772409535198484667gmail_msg">I&#39;ve made some progress.  After adding the following to the builder:<div class="m_772409535198484667gmail_msg"><br class="m_772409535198484667gmail_msg"></div><font face="monospace">val password = config.https.password.get.<wbr>toCharArray<br class="m_772409535198484667gmail_msg">val keyStore = KeyStore.getInstance(&quot;JKS&quot;)<br class="m_772409535198484667gmail_msg">val keyStoreFile = config.https.keyStoreLocation.<wbr>get<br class="m_772409535198484667gmail_msg">assert(keyStoreFile.exists(), s&quot;No keystore file was found at the location: ${keyStoreFile.<wbr>getAbsolutePath}&quot;)<br class="m_772409535198484667gmail_msg">val keyStoreInput = new FileInputStream(keyStoreFile)<br class="m_772409535198484667gmail_msg">keyStore.load(keyStoreInput, password)<br class="m_772409535198484667gmail_msg">val keyManagerFactory = KeyManagerFactory.getInstance(<wbr>KeyManagerFactory.<wbr>getDefaultAlgorithm)<br class="m_772409535198484667gmail_msg">keyManagerFactory.init(<wbr>keyStore, password)<br class="m_772409535198484667gmail_msg">val trustManagerFactory = TrustManagerFactory.<wbr>getInstance(<wbr>TrustManagerFactory.<wbr>getDefaultAlgorithm)<br class="m_772409535198484667gmail_msg">trustManagerFactory.init(<wbr>keyStore)<br class="m_772409535198484667gmail_msg">val sslContext = SSLContext.getInstance(&quot;TLS&quot;)<br class="m_772409535198484667gmail_msg">sslContext.init(<wbr>keyManagerFactory.<wbr>getKeyManagers, trustManagerFactory.<wbr>getTrustManagers, new SecureRandom)<br class="m_772409535198484667gmail_msg">builder.addHttpsListener(<wbr>config.https.port.get, config.https.host.get, sslContext)</font></div><div><br></div><div>Everything starts as expected, no errors, but when I hit localhost:8443 with the browser it says &quot;localhost didn&#39;t send any data&quot;.</div><div><br></div><div>Should it use what I&#39;ve set with &quot;builder.setHandler&quot; for HTTPS as well?</div><div><div class="h5"><br class="m_772409535198484667gmail_msg"><div class="gmail_quote m_772409535198484667gmail_msg"><div dir="ltr" class="m_772409535198484667gmail_msg">On Thu, Dec 8, 2016 at 10:53 AM Hicks, Matt &lt;<a href="mailto:matt@matthicks.com" class="m_772409535198484667gmail_msg" target="_blank">matt@matthicks.com</a>&gt; wrote:<br class="m_772409535198484667gmail_msg"></div><blockquote class="gmail_quote m_772409535198484667gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_772409535198484667gmail_msg">Is there any documentation for configuring SSL on my server?  I was looking through the online docs and found nothing (apart from &quot;Assembling a Server Manually&quot;).<div class="m_772409535198484667gmail_msg"><br class="m_772409535198484667gmail_msg"></div><div class="m_772409535198484667gmail_msg">Any assistance would be appreciated.</div><div class="m_772409535198484667gmail_msg"><br class="m_772409535198484667gmail_msg"></div><div class="m_772409535198484667gmail_msg">Thanks</div></div></blockquote></div></div></div></div>
<br>______________________________<wbr>_________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>