Feature/ni 161 - Meteoalarm message post#75
Conversation
aa4166b to
6f3b45e
Compare
…e process as it is integral to future of the service
|
| }, | ||
| httpsAgent: new https.Agent({ | ||
| rejectUnauthorized: false | ||
| }) |
There was a problem hiding this comment.
I think this is not needed when the code is running outside a local development environment. Bypassing server certificate checks is a security risk that can be avoided.
When running the code in a local development environment I think a better solution is to make intermediate CA certificates available to Node.js using the NODE_EXTRA_CA_CERTS environment variable. This approach worked for me locally using a simple program to perform a HTTP GET to the Meteoalarm API using axios.
Without the NODE_EXTRA_CA_CERTS environment set, the test program responded with "unable to get local issuer certificate".
| httpsAgent: new https.Agent({ | ||
| rejectUnauthorized: false | ||
| }) |
There was a problem hiding this comment.
I think this is not needed when the code is running outside a local development environment. Bypassing server certificate checks is a security risk that can be avoided.
When running the code in a local development environment I think a better solution is to make intermediate CA certificates available to Node.js using the NODE_EXTRA_CA_CERTS environment variable. This approach worked for me locally using a simple program to perform a HTTP GET to the Meteoalarm API using axios.
Without the NODE_EXTRA_CA_CERTS environment set, the test program responded with "unable to get local issuer certificate".



No description provided.