async-openssl
Version:
Async OpenSSL wrapper module for nodejs
25 lines (19 loc) • 688 B
Markdown
[](https://travis-ci.com/MatteoArella/async-openssl)
[](https://badge.fury.io/js/async-openssl)
**`async-openssl`** is an asyncronous wrapper for OpenSSL based on promises.
```sh
$ npm install async-openssl
```
```javascript
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
// ...
}
```