1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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, }```
respondido hace 3 años
Contenido relevante
- preguntada hace un mes
- preguntada hace 2 días
- preguntada hace 2 meses
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 3 meses