1 Answer
- Newest
- Most votes
- Most comments
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, }```
answered 3 years ago
Relevant content
- asked 3 years ago
- Accepted Answerasked 7 months ago
- asked 5 years ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 15 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago