我有一个使用 HTTPS 作为服务器的场景:
// (NodeJS)
import * as https from "https";
this.server = https.createServer({
cert: this.cert, key: this.privKey, requestCert: true,
}, (request, response) => {
...
}
对于 Node 7.10.1
版本,我可以使用 Java 1.8.0_131 64 位
进行连接,提供客户端证书。
但如果我升级到 Node 8.7.0
,我可以使用该代码段的唯一方法是将 requestCert
更改为 false。否则,Java 代码会抛出异常:
Remote host closed connection during handshake during web service communication
在 TLS (SSL) 方面, Node 7 和 Node 8 之间是否存在任何重大差异?
最佳答案
从 8.5.0 开始, Node 端通常会出现一些关于 SSL 的问题,直到问题解决为止,我建议降级到 Node 8.5.0 或更低版本。
关于node.js - Node 8 与 Node 7 中的 SSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46786863/