1.0.3 • Published 4 years ago

async-openssl v1.0.3

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

async-openssl

Build Status npm version

async-openssl is an asyncronous wrapper for OpenSSL based on promises.

Installation

$ npm install async-openssl

Importing and Usage

const openssl = require('async-openssl');

// run any openssl command
try {
    await openssl('genpkey -algorithm RSA -aes-256-cbc -out key.pem -pass file:/run/secrets/KEY_PASS -pkeyopt rsa_keygen_bits:2048');
} catch (err) {
    // handle error
    // ...
}