1.0.4 • Published 7 years ago
apem v1.0.4
apem
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.