le-acme-core.js/lib/fork-old.js

17 lines
367 B
JavaScript
Raw Normal View History

2015-12-15 14:33:53 +00:00
if (~process.argv.indexOf('--letiny-fork')) {
process.on('message', function(msg) {
if (msg.request) {
getCert(msg.request.options, function(err, cert, key, ca) {
process.send({
result:{
err:err ? err.stack : null,
cert:cert,
key:key,
ca:ca
}
});
});
}
});
}