简体   繁体   English

获取 Node.js 信任自签名证书

[英]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.

相关问题 node.js elasticsearch 证书链中的自签名证书 - node.js elasticsearch self signed certificate in certificate chain 在Node.JS中带有自签名证书的HTTPS代理 - HTTPS proxy with a self-signed certificate in Node.JS 无法将Node.js中的IP用于自签名证书 - Cannot use IP in Node.js for self-signed certificate 自签名证书Windows模拟器-node.js应用程序 - Self Signed Certificate Windows Emulator - node.js application 无法信任来自 Node.js 中 IIS Express 的自签名 SSL 证书 - Unable to trust a self-signed SSL cert from IIS Express in Node.js 无法使用 Kubernetes 上的 Node.Js 连接到 Elasticsearch(证书链中的自签名证书) - Can't connect to Elasticsearch with Node.Js on Kubernetes (self signed certificate in certificate chain) 证书链中的自签名证书将node.js SDK用于Watson Assistant时出错 - Self signed certificate in certificate chain Error while using node.js SDK for watson assistant Node.js 依赖项安装提供“证书链中的自签名证书” - Node.js dependency installation giving "self signed certificate in certificate chain" ionic 3 / node.js - 证书链中的自签名证书(如何禁用strict-ssl?) - ionic 3 / node.js - Self signed certificate in certificate chain (how to disable strict-ssl?) 错误:自签名证书,node.JS https 客户端证书认证请求 - Error: Self-signed certificate, node.JS https client certificate authentication with request
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM