错误:证书已在Node中过期

时间:2016-11-03 22:29:56

标签: node.js ssl heroku npm ssl-certificate

我在Heroku上的生产节点应用程序随机开始抛出以下错误:

        ::::::::::::::::::::::::::::::::::::::::::::::
    ::              FAILED DOWNLOADS            ::
    :: ^ see resolution messages for details  ^ ::
    ::::::::::::::::::::::::::::::::::::::::::::::
    :: org.scala-sbt#main;0.13.11!main.jar
    :: org.scala-sbt#actions;0.13.11!actions.jar
    :: org.scala-sbt#io;0.13.11!io.jar
    :: org.scala-sbt#completion;0.13.11!completion.jar
    :: org.scala-sbt#collections;0.13.11!collections.jar
    :: org.scala-sbt#api;0.13.11!api.jar
    :: org.scala-sbt#incremental-compiler;0.13.11!incremental-compiler.jar
    :: org.scala-sbt#compile;0.13.11!compile.jar
    :: org.scala-sbt#ivy;0.13.11!ivy.jar
    :: org.scala-sbt#main-settings;0.13.11!main-settings.jar
    :: org.scala-sbt#command;0.13.11!command.jar
    :: org.scala-sbt#compiler-interface;0.13.11!compiler-interface.jar
    ::::::::::::::::::::::::::::::::::::::::::::::

:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
download failed: org.scala-sbt#main;0.13.11!main.jar
download failed: org.scala-sbt#actions;0.13.11!actions.jar
download failed: org.scala-sbt#io;0.13.11!io.jar
download failed: org.scala-sbt#completion;0.13.11!completion.jar
download failed: org.scala-sbt#collections;0.13.11!collections.jar
download failed: org.scala-sbt#api;0.13.11!api.jar
download failed: org.scala-sbt#incremental-compiler;0.13.11!incremental-compiler.jar
download failed: org.scala-sbt#compile;0.13.11!compile.jar
download failed: org.scala-sbt#ivy;0.13.11!ivy.jar
download failed: org.scala-sbt#main-settings;0.13.11!main-settings.jar
download failed: org.scala-sbt#command;0.13.11!command.jar
download failed: org.scala-sbt#compiler-interface;0.13.11!compiler-interface.jar
Error during sbt execution: Error retrieving required libraries
  (see /home/user/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.13.11

我对两件事情感到困惑。我的证书是最新的,因此我不知道它为什么说它已过期,其次,只有两个文件被称为" events.js"在我的应用程序目录中有两个看似无关的节点模块(询问者和twilio),甚至没有一行160.可能是什么原因以及我应该如何调试呢?

编辑:此外,它只是生产应用程序(当然),而不是暂存或本地,这很奇怪,因为登台和生产都指向同一证书。

2 个答案:

答案 0 :(得分:2)

我的项目中有类似的错误

Error: certificate has expired
at TLSSocket.<anonymous> (_tls_wrap.js:1116:38)
at emitNone (events.js:106:13)
at TLSSocket.emit (events.js:208:7)
at TLSSocket._finishInit (_tls_wrap.js:643:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:473:38)
at TLSSocket.<anonymous> (_tls_wrap.js:1116:38)
at emitNone (events.js:106:13)
at TLSSocket.emit (events.js:208:7)
at TLSSocket._finishInit (_tls_wrap.js:643:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:473:38)

事实证明,问题出在用于跟踪用户事件(幅度)的外部服务中。他们的Sectigo的旧版AddTrust外部CA根证书已过期,这影响了Internet上的许多公司。为解决此问题,他们已使用新的端点和新的证书升级了其程序包。

因此,如果有人遇到类似问题,请首先考虑该应用程序中使用的所有可能的外部服务。

答案 1 :(得分:1)

我遇到了同样的问题,对我来说,一个远程“游乐场”服务器获得了过期证书。 (节点尝试通过Web套接字连接的服务器)