Skip to content

sibelius/node-mtls

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published