Skip to content

Instantly share code, notes, and snippets.

View stefannew's full-sized avatar

Stefan New stefannew

View GitHub Profile
@stefannew
stefannew / README.md
Created February 21, 2024 01:21 — 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.

Newer versions of openssl are stricter about certificate purposes. Use extensions accordingly.

Prepare certificates

Generate a Certificate Authority:

@stefannew
stefannew / Makefile
Created March 13, 2019 14:39
Recursive Wildcard for getting all filenames in a directory and its sub-directories
rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))