ezl
Easy SSL CA and cert generation for mitm testing and more.
Installation
$ npm install --save ezl
Dependencies
- OpenSSL
- Bash shell
API
CA
; // Generates a new CAlet ca = await CA; // Initiate an existing CAlet ca = crt key; console; // ca.crt holds a string containing the CA certificateconsole; // ca.crt holds a string containing the CA private key
Device
Generate certificate pairs for "devices" (servers, clients, whatever) signed by your CA.
; // Generate a new device from CAlet device = await Device; // In cases of HTTPs servers CN should be your FQDNlet device = await ca; console; // ca.crt holds a string containing the device certificateconsole; // ca.crt holds a string containing the device private key