csr-gen icon indicating copy to clipboard operation
csr-gen copied to clipboard

Private Key is not send to callback

Open Dexus opened this issue 11 years ago • 1 comments

I use Node 0.10.24 and i dont get the key in the callback.

Dexus avatar Feb 15 '14 16:02 Dexus

To correct this:

OLD:

var csrgen = require('csr-gen');
var fs = require('fs');

var domain = 'exampledomain.com';

csrgen(domain, {
    outputDir: __dirname,
    read: true,
    company: 'Example, Inc.',
    email: '[email protected]'
}, function(err, keys){
    console.log('CSR created!')
    console.log('key: '+keys.private);
    console.log('csr: '+keys.csr);
});

NEW:

var csrgen = require('csr-gen');
var fs = require('fs');

var domain = 'exampledomain.com';

csrgen(domain, {
    outputDir: __dirname,
    read: true,
    company: 'Example, Inc.',
    email: '[email protected]'
}, function(err, keys){
    console.log('CSR created!')
    console.log('key: '+keys.key);
    console.log('csr: '+keys.csr);
});

Dexus avatar Feb 15 '14 16:02 Dexus