Does ktor support hot reloading of ssl certs?
# ktor
r
Does ktor support hot reloading of ssl certs?
a
No. There is a pending feature request.
r
And is there a engine specific implementation of this? I mean does any engine support it?
Maybe having a custom KeyStore will do the job
a
Jetty has the
ssl-reload
module.
r
Thanks, i will try using that
Do i need to use ktor implementation of SSL or the jetty one? And also, how do i call sslContextFactory.reload() when using an embededServer?
a
I think you need to configure SSL on the Jetty's side. You can configure the Jetty's server by using the
configureServer
method:
Copy code
embeddedServer(Jetty, applicationEngineEnvironment {}) {
    configureServer = { // this: Server
        // Configure SSL here
    }
}.start(wait = true)