async-openssl
v1.0.3
Published
Async OpenSSL wrapper module for nodejs
Downloads
142
Maintainers
Readme
async-openssl
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
// ...
}