[英]Getting Node.js To Trust Self Signed Certificate
I need to get a pre-packaged node.js application to trust a self signed certificate.我需要获得预打包的 node.js 应用程序来信任自签名证书。 Unfortunately it seems to use Linux file capabilities which means the NODE_EXTRA_CA_CERTS environment variable is ignored.
不幸的是,它似乎使用 Linux 文件功能,这意味着忽略了 NODE_EXTRA_CA_CERTS 环境变量。 It's a pre-packaged app so doing it via the source code isn't an option either.
它是一个预打包的应用程序,因此也不是通过源代码来完成它的一种选择。 Is there any documentation on how Node.js applications figure out which certificates to trust?
是否有关于 Node.js 应用程序如何确定要信任哪些证书的文档? I've tried adding the certificate to the /usr/local/share/ca-certificates folder and running
update-ca-certificates
but that made no difference so I assume Node.js figures out which certificates to trust some other way.我已经尝试将证书添加到 /usr/local/share/ca-certificates 文件夹并运行
update-ca-certificates
但这没有任何区别所以我假设 Node.js 找出以其他方式信任哪些证书。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.