smime
Node / io.js wrapper for OpenSSL S/MIME command.
Install
npm install smime
Usage
var smime = ; smime;
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