2.1.1 • Published 5 years ago

@nfi/openssl-ca v2.1.1

Weekly downloads
11
License
ISC
Repository
gitlab
Last release
5 years ago

@nfi/openssl-ca

npm version pipeline status coverage status standard-js

Basic X.509 CA built around the OpenSSL command-line utility.

Installation

npm install @nfi/openssl-ca

Usage Example

const { CA } = require('@nfi/openssl-ca')

/* Create a new self-signed CA. */
const ca = CA.generate({
  pass: 'password',
  bits: 2048,
  days: 3650,
  subj: [
    'CN=Test CA',
    'O=Test Organisation'
  ]
})

/* Issue a certificate from that CA. */
const cert = await ca.guard((ca) => {
  return ca.issue({
    pass: 'password',
    bits: 2048,
    days: 365,
    subj: [
      'CN=Test Server',
      'OU=Test Department',
      'O=Test Organisation'
    ]
    sans: [
      'DNS:server.test.org'
    ]
  })
})
2.1.1

5 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago