1 個回答
- 最新
- 最多得票
- 最多評論
0
Found an article: https://levelup.gitconnected.com/how-to-resolve-certificate-errors-in-nodejs-app-involving-ssl-calls-781ce48daded
Suggestions are:
- Quick fix: Add rejectUnauthorized on request or ENVIRONMENT setting
- Add CA certificate to request
Add to request:
https.request({
....,
rejectUnauthorized: false,
},
...)
or environment variable:
NODE_TLS_REJECT_UNAUTHORIZED=0
Alternatively and safer solution is CA certificate:
ca: [fs.readFileSync([certificate path])], rejectUnauthorized: true, }```
已回答 2 年前
相關內容
- AWS 官方已更新 3 年前