I used the Nodejs request Module to request an HTTPS and encountered the following error:

DEPTH_ZERO_SELF_SIGNED_CERT

self signed certificate

Solution:

StrictSSL: false, // allow us to use our self-signed cert for testing rejectUnauthorized: false

This ignores errors:

For more of Jerry’s original articles, please follow the public account “Wang Zixi “: