apem

1.0.4 • Public • Published

apem

Build Status Code Climate Code Coverage npm Version JS Standard

Pem generator

Installation

$ npm install apem --save

Usage

'use strict'
 
const { selfSigned } = require('apem')
const co = require('co')
const writeout = require('writeout')
 
co(function * () {
  {
    let { key, cert } = yield selfSigned()
    yield writeout('www.example.com.crt', cert)
    yield writeout('www.example.com.key', key)
  }
}).catch((err) => console.error(err))
 
 

Functions

Available functions

Signature Description
.selfSigned() -> Promise.<Object> Create self-signed cert and keys

License

This software is released under the MIT License.

Links

Readme

Keywords

none

Package Sidebar

Install

npm i apem

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • okunishinishi