node.js - Getting CERT_UNTRUSTED while executeing command on terminal -
i have node (v0.10.22) , npm (1.3.14) installed on system.
i trying execute below command.
echo "require('https').request({host: 'host.net'}, function(res){console.log(res.statuscode)}).end()" | npm_debug=https node
and getting error on terminal below
events.js:72 throw er; // unhandled 'error' event ^ error: cert_untrusted @ securepair.<anonymous> (tls.js:1362:32) @ securepair.eventemitter.emit (events.js:92:17) @ securepair.maybeinitfinished (tls.js:974:10) @ cleartextstream.read [as _read] (tls.js:462:15) @ cleartextstream.readable.read (_stream_readable.js:320:10) @ encryptedstream.write [as _write] (tls.js:366:25) @ dowrite (_stream_writable.js:221:10) @ writeorbuffer (_stream_writable.js:211:5) @ encryptedstream.writable.write (_stream_writable.js:180:11) @ write (_stream_readable.js:583:24)
the above command working fine node (v0.6.12) not node (v0.10.22)
i tried below things still not working
npm config set strict-ssl false npm config set ca ""
can please on ?
Comments
Post a Comment