While testing a backend service using edgemicro, service returns error as
{"message":"unable to verify the first certificate","code":"UNABLE_TO_VERIFY_LEAF_SIGNATURE"}
When we export NODE_TLS_REJECT_UNAUTHORIZED="0" it works.
Is this a node issue or the cert on the backend URL?
As per FAQ,
It is required for custom cert.
For anyone still struggling to do this from Windows Powershell; here's the command.
to set
$env:NODE_TLS_REJECT_UNAUTHORIZED ="0"
to check
node
process.env.NODE_TLS_REJECT_UNAUTHORIZED