X
X
XiNull2020-06-22 04:40:21
JavaScript
XiNull, 2020-06-22 04:40:21

How to create TCP server (net library) and HTTPS/TLS connection?

You need to write a TCP server so that it accepts a connection and connects to another TCP server (as an intermediary server), passing data from the one who connected. But the problem is that the connection must be via HTTPS / TLS, in both directions.
How can this be implemented? Preferably using the standard net library.

...
const server = net.createServer((socket) => {
...
}
...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mopsicus, 2020-06-26
@mopsicus

https://github.com/Heziode/Simple-TLS-Client-Serve...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question