Testing various SSL scenarios with node.

Usage no npm install needed!

<script type="module">
  import jdsNodeSslTests from 'https://cdn.skypack.dev/jds-node-ssl-tests';


Node SSL (HTTPS) Tests

Various examples of how to connect to node.js server over SSL.

Also examples of how to use SSL for client authentication.


npm install


npm test

Re-generate Certs

The following will delete all the current certs and re-generate them. Play around with this is you want to see how to generate certs.

cd certs

I used https://github.com/mikeal/request/tree/master/tests/ssl as a starting point.