help
help copied to clipboard
Shutdown SSL but keeping socket alive
I created a tls socket from a live socket instance.
Is there a way to gracefully shutdown tls, but keep the socket alive? I need to send more plain data over the raw socket.
I suppose you could do that by means of tls.createSecurePair() and a net.Socket although I'm curious what your use case is. Downgrading is usually not a good thing.
I'm nominating this for moving to nodejs/help. This issue tracker is for bug reports, not questions/answers.
@bnoordhuis Thanks for your fast reply.
but it seems that tls.createSecurePair is Deprecated.
https://nodejs.org/api/tls.html#tls_tls_createsecurepair_context_isserver_requestcert_rejectunauthorized_options
I'm implementing protocols that need to switch between ssl and plain text on the same socket instance.
ssl ending doesn't require to close the raw socket.
I'm sorry for the wrong repo. I didn't notice that.
@Neilpang - is this still an issue?
@gireeshpunathil Yes.
I guess downgrading from secure to raw is not allowed as per standard. please refer https://datatracker.ietf.org/doc/html/rfc8446
It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.
It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.