If you are trying to connect to a secure website via nodejs. Although, the site may work in the browser, you may run into errors such as
Serves HTTPS using TLS (SSL) certs for localhost.daplie.me - great for testing and development.
Library ssl-gandi-gitlab-certs-builder description
A cryptographic library using native Node.js crypto functions & Go binaries for an all-in-one package for everything crypto.