A simple test for TLS usage with client and server certificates.
./scripts.shto generate the certs using OpenSSL
node src/serverto start the server
node src/clientto connect to the server using the client cert
This will output:
You can test that it requires the client cert by using curl:
$ curl -k https://127.0.0.1:9000 curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect