testing client certificates
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ssl
.gitignore
LICENSE.MD
README.MD
server.js
ssl.zip

README.MD

  • run ./setup.sh in /ssl and export client certificate with pw test
  • run node server.js
  • curl -v --cacert ssl/rootCA.crt https://localhost:5000/ should return 401
  • curl -v --cert ssl/client.p12:test --cacert ssl/rootCA.crt https://localhost:5000 should return 200
  • import rootCA into keychain and set to always trust
  • import client.p12 into keychain
  • open https://localhost:5000 in browser