Skip to content

Instantly share code, notes, and snippets.

View vantienvnn's full-sized avatar

Tien Van Vo vantienvnn

View GitHub Profile
@vantienvnn
vantienvnn / README.md
Created June 11, 2019 08:26 — forked from pcan/README.md
Node.js plain TLS Client & Server, 2-way Cert Auth

Node.js TLS plain TLS sockets

This guide shows how to set up a bidirectional client/server authentication for plain TLS sockets.

Prepare certificates

Generate a Certificate Authority:

openssl req -new -x509 -days 9999 -keyout ca-key.pem -out ca-crt.pem