Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 506 Bytes

README.md

File metadata and controls

45 lines (32 loc) · 506 Bytes

node-mtls

Generate certificates

First generate rootCA, client and server certificates

./generate_certs.sh

Run server

yarn es server.ts

Test using client

node-fetch

yarn es clientFetch.ts

http.get

yarn es clientHttp.ts

undici fetch

yarn es clientUndici.ts

Clean certificates

yarn clean

Verify rootCA and client and server

openssl verify -CAfile rootCA.crt client.crt
openssl verify -CAfile rootCA.crt server.crt