"message":"unable to verify the first certificate","code":"UNABLE_TO_VERIFY_LEAF_SIGNATURE"

Not applicable

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?

0 2 4,948
2 REPLIES 2

Not applicable

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