🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

ezl

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ezl

Easy SSL CA and cert generation for mitm testing and more.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

ezl

Easy SSL CA and cert generation for mitm testing and more.

Installation

$ npm install --save ezl

Dependencies

  • OpenSSL
  • Bash shell

API

CA

import { CA } from 'ezl';

// Generates a new CA
let ca = await CA.generate();

// Initiate an existing CA
let ca = new CA(crt, key);

console.log(ca.crt); // ca.crt holds a string containing the CA certificate
console.log(ca.key); // ca.crt holds a string containing the CA private key

Device

Generate certificate pairs for "devices" (servers, clients, whatever) signed by your CA.

import { Device } from 'ezl';

// Generate a new device from CA
let device = await Device.generate(ca, cn); // In cases of HTTPs servers CN should be your FQDN
let device = await ca.generateDevice(cn);

console.log(ca.crt); // ca.crt holds a string containing the device certificate
console.log(ca.key); // ca.crt holds a string containing the device private key

Keywords

ssl

FAQs

Package last updated on 30 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts