Node.js: unable to verify the first certificate
Export PDF
Print-friendly layout with a copyright watermark; choose Save as PDF in the print dialog

原因
服务器只发送了叶子证书,没有带上中间证书——这是证书链不完整最典型的报错。
解决
- Nginx 把 fullchain(叶子+中间证书)配置到
ssl_certificate,而不是只有站点证书的 .crt; - 修完后验证:
openssl s_client -connect 域名:443 -servername 域名,Verify return code 应为 0 (ok); - 也可用 SSL Labs 测试,链不完整会报 “Chain issues: Incomplete”。