https://kotlinlang.org logo
#ktor
Title
# ktor
d

Don.Robertson

10/20/2023, 11:13 PM
Hey, new to channel. I'm trying an SSL config and getting an unexpected result and don't know how to get more logging or info. I configure sslPort and the server fires up but listens unencrypted on the SSL port (but https request fail). INFO Application - Responding at http://0.0.0.0:8443 My config is simple ...
Copy code
ktor {
    development = true
    deployment {
        host = localhost
        port = 8080
        port = ${?PORT}
        sslPort = 8443
        sslPort = ${?SSL_PORT}
        shutdown.url = "/shutdown"
    }

    security {
        ssl {
            keyStore = ssl/keystore.jks
and so on with the appropriate key aliases and passwords. Any suggestions?
🧵 2
c

Chrimaeon

10/21/2023, 8:48 AM
Wild guess - the keystore path should be relative to the conf file. 🤷 so put it in the
resources
also please don’t post into multiple messages - makes answering with context quite hard.
d

Don.Robertson

10/21/2023, 5:20 PM
Apologies. Thanks for the suggestion, but no joy.
Resolved.
c

Chrimaeon

10/23/2023, 6:23 AM
What was the issue?