Open rnett opened 5 years ago
Hi @rnett, thanks for the report.
tls
is supported on the client side only for now
Ah. Is there any kind of time line for server implementation?
It's in plans, but there is no ETA.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Ktor Version
1.1.1
Ktor Engine Used(client or server and name)
N/A - Raw Sockets
JVM Version, Operating System and Relevant Context
1.8.0_172, Windows.
I'm trying to create a basic client/server socket connection. It works fine without TLS.
When I enable TLS using
.tls(Dispatchers.IO, randomAlgorithm = SecureRandom().algorithm)
(on client and server) I get the exceptionExpecting ServerHello but got ClientHello
(on both client and server). I'm usingSecureRandom().algorithm
so that it works on windows (I want it to be cross platform but haven't looked into it yet). It evaluates toSHA1PRNG
.On the client and:
on the server.
I think it might be related to (and possibly fixed by) #394, but that is just a wild guess.