错误:SELF_SIGNED_CERT_IN_CHAIN错误

时间:2014-05-13 17:19:58

标签: node.js heroku

我最近在myoku服务器上更新了ssl证书。 我在scheduler.js任务运行时收到此错误。

我在herlu上了票,但遗憾的是没有回应。

堆栈跟踪

Error: SELF_SIGNED_CERT_IN_CHAIN at SecurePair.<anonymous> (tls.js:1283:32) at SecurePair.EventEmitter.emit (events.js:92:17) at SecurePair.maybeInitFinished (tls.js:896:10) at CleartextStream.read [as _read] (tls.js:430:15) at CleartextStream.Readable.read (_stream_readable.js:294:10) at EncryptedStream.write [as _write] (tls.js:344:25) at doWrite (_stream_writable.js:211:10) at writeOrBuffer (_stream_writable.js:201:5) at EncryptedStream.Writable.write (_stream_writable.js:172:11) at write (_stream_readable.js:547:24)

1 个答案:

答案 0 :(得分:0)

我发现here - 检查您是否有防病毒功能阻止某些所需的证书。

如果没有,请检查此主题: Npm SELF_SIGNED_CERT_IN_CHAIN on Azure

建议升级npm:

npm update -g 

npm config set ca ""

如果两者都不起作用,请尝试降级你的node.js版本......