bug_x

导航

 

down voteaccepted

Cheap and insecure answer:

Add

process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";

in code, before calling https.request()

A more secure way (the solution above makes the whole node process insecure) is answered in this question

 

 

https://stackoverflow.com/questions/20433287/node-js-request-cert-has-expired#answer-29397100

 

posted on 2018-01-17 13:29  bug_x  阅读(226)  评论(0编辑  收藏  举报