- Client authentication (self certificate)
- Server self certificate
- Client certificate request and verification within SSL/TLS handshake
- cUrl
- Node.js
cd test
npm install
npm start
Display [port] number.
cd test/keyfiles
curl -v -k --key client.key --cert client.crt https://127.0.0.1:[port]
- server key
cd test
openssl genrsa 4096 > "./keyfiles/server.key"
openssl req -batch -new -sha256 -key "./keyfiles/server.key" -out "./keyfiles/server.csr"
openssl x509 -req -days 3650 -signkey "./keyfiles/server.key" -in "./keyfiles/server.csr" -out "./keyfiles/server.crt"
- client key
openssl genrsa 4096 > "./keyfiles/client.key"
openssl req -batch -new -sha256 -key "./keyfiles/client.key" -out "./keyfiles/client.csr"
openssl x509 -req -days 3650 -signkey "./keyfiles/client.key" -in "./keyfiles/client.csr" -out "./keyfiles/client.crt"
test