Hello. Does ktor has server socket TLS implementat...
# ktor
s
Hello. Does ktor has server socket TLS implementation?
c
No, not yet. TLS was implemented for client to get ktor-client working. It is not prioritized for server since all engines except experimental CIO do support TLS out of the box.
s
I’m creating a proxy-server with ktor and it would be great to have TLS server socket
And another thing I am missing - TLS classes all all internal and I need to make a client handshake for already opened channels - there is probably no way to do that
c
It is not that hard to write a server-side part since we already have a lot of implemented things for client.
You don't need these internals, just open tls over a regular socket
socket.tls(....)
tls
extension on a socket is public
s
It opens channels inside the function - but my channels are open already at the moment of handshake
c
Well, for now you can only use
copyTo
For sure we are not going to open internals, perhaps we need to improve
tls
extension function
Could you please file a ticket about it?
s
It would be great if it accepts input and output channels
Sure, I will. At Github?
c
s
Thanks a lot!