我正在尝试抓一个网站,我正在使用this blog post
上提到的npm模块tinyreq / cheerio我试图抓取的网站使用TLS我遇到以下错误:
Error: self signed certificate in certificate chain
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:185:7)
at TLSSocket._finishInit (_tls_wrap.js:610:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38) code: 'SELF_SIGNED_CERT_IN_CHAIN'
有没有办法在节点中绕过这个?或者我是否必须在脚本中包含实际的证书?