www.awsgood.com
Node.js 的内置 CA 列表无法验证站点证书的叶子证书,多因证书链不完整或使用了私有 CA。
openssl s_client -connect 域名:443 -servername 域名 -showcerts
NODE_EXTRA_CA_CERTS=/path/to/root.pem node app.js
NODE_TLS_REJECT_UNAUTHORIZED=0