Try the constructor with 4 args where you also pass a handler.

        public Builder addHttpsListener(int port, String host, SSLContext sslContext, HttpHandler rootHandler) {



On Thu, Dec 8, 2016 at 8:06 PM, Hicks, Matt <matt@matthicks.com> wrote:
I've made some progress.  After adding the following to the builder:

val password = config.https.password.get.toCharArray
val keyStore = KeyStore.getInstance("JKS")
val keyStoreFile = config.https.keyStoreLocation.get
assert(keyStoreFile.exists(), s"No keystore file was found at the location: ${keyStoreFile.getAbsolutePath}")
val keyStoreInput = new FileInputStream(keyStoreFile)
keyStore.load(keyStoreInput, password)
val keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm)
keyManagerFactory.init(keyStore, password)
val trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm)
trustManagerFactory.init(keyStore)
val sslContext = SSLContext.getInstance("TLS")
sslContext.init(keyManagerFactory.getKeyManagers, trustManagerFactory.getTrustManagers, new SecureRandom)
builder.addHttpsListener(config.https.port.get, config.https.host.get, sslContext)

Everything starts as expected, no errors, but when I hit localhost:8443 with the browser it says "localhost didn't send any data".

Should it use what I've set with "builder.setHandler" for HTTPS as well?

On Thu, Dec 8, 2016 at 10:53 AM Hicks, Matt <matt@matthicks.com> wrote:
Is there any documentation for configuring SSL on my server?  I was looking through the online docs and found nothing (apart from "Assembling a Server Manually").

Any assistance would be appreciated.

Thanks

_______________________________________________
undertow-dev mailing list
undertow-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev