Nodejs v0.10.x (freebsd) “X509_STORE_add_cert:cert already in hash table”

后端 未结 1 1484
慢半拍i
慢半拍i 2021-01-24 20:27

I\'m work with async web api and have a problem in nodejs version higer than v0.8.9

$ uname -a FreeBSD home 9.1-STABLE FreeBSD 9.1-STABLE #0: Fri Feb 1 10:38:27 EET 201

相关标签:
1条回答
  • 2021-01-24 21:18

    The solution is to isolate your PEMs and add them back one by one, not as a bundle. At the lowest leaf, then the parent, then the parent, etc and test each time.

    See https://github.com/iojs/io.js/issues/712

    I'm thinking this must be a bug in the internals of node.js / io.js where duplicate certs aren't checked the very first time they're used.

    What's odd is that adding a cert to the chain for a specific https server instance can cause an unrelated https request (which should be using the default chain, not anything to do with the https server).

    0 讨论(0)
提交回复
热议问题