❔ tls 1.2 serverclient
I'm struggling a lot for something that maybe is very simple.
I have to upgrade a simulator with tls functionality. This simulator is some sort of gateway: starts as a server then sometimes it is tasked to send stuff to various clients
With socket I have no issue. I read everything and when it's time to send I send in chunks using .Send()
For tls I'm using sslstream. Instead of a socket I initialize a tcpListener, listen for it and get the client. From its stream I get the sslstream and then I authenticate as server and I start reading everything with no issue.
When it's time to send I also send in chunks using first write then flush. The client unfortunately just dies and reinits himself. I tried almost everything even with protocol dumps at one point I get an RST and it's over. I also don't think after initializing and finishing the handshake I can go back using socket.
tcpClient.Client is the underlying socket (?) but I don't think I can freely use it
If anyone has an advice most welcome
1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.