apem
Pem generator
Last updated 2 years ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install apem 
SYNC missed versions from official npm registry.

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

Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 20
Dependencies (3)
Dev Dependencies (11)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |