2.0.1 • Published 9 years ago

smime v2.0.1

Weekly downloads
531
License
MIT
Repository
github
Last release
9 years ago

smime

Build Status Dependency Status devDependency Status

Node / io.js wrapper for OpenSSL S/MIME command.

Install

npm install smime

Usage

var smime = require('smime');

smime.sign({
  content: fs.createReadStream('/path/to/file/to/sign'),
  key: '/path/to/key.pem',
  cert: '/path/to/cert.pem'
}).then(function (res) {
  console.log(res); // {der, child}
});

smime.sign(options, cb)

Sign a content using smime.

Options:

@param {object} options Options
@param {stream.Readable} options.content Content stream
@param {string} options.key Key path
@param {string} options.cert Cert path
@param {string} [options.password] Key password
@param {function} [cb] Optional callback

Result:

@returns {object} result Result
@returns {Buffer} result.der Der signature
@returns {ChildProcess} result.child Child process

License

MIT

2.0.1

9 years ago

2.0.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago