Node.js DTLS Tunnel, library to connect plain-text UDP clients with plain-text UDP servers over an encrypted UDP tunnel..
- nodejs version 4 or higher
- npm
$ sudo apt-get install nodejs nodejs-legacy npm
$ node --version
wget -qO- https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get install nodejs
$ cd node-dtls-tunnel
$ npm install
$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout cert.key -out cert.crt -subj '/CN=fiware-orion/O=fiware/C=BR'
- On a terminal
$ node examples/server/dtls2udp.js
- On another terminal
$ node examples/server/udp_server.js
- On a terminal
$ node examples/client/udp2dtls.js <REMOTE DTLS SERVER>
- On another terminal
$ node examples/client/udp_client.js