Hi! How do I use HTTPS with Ktor?
# ktor
w
Hi! How do I use HTTPS with Ktor?
c
you need to add an ssl connector
If you use embeddedServer function to launch app then you need to use add connector programmatically
w
Is it that simple, nice. I want to use embeddedServer yes, how do I add it programmatically?
You need to call
sslConnector
just after
connector
Be ready to provide JKS keystore and credentials
w
Okay, thank you!
To get correct JKS you can follow SSL certificate section of http://ktor.io/advanced/http2.html
w
Cool, love Ktor (and other Kotlin libraries like Exposed) btw!
👍🏻 4