1

Is there a way to ignore invalid ssl certs using the popular request library: https://www.npmjs.com/package/request

I'm using this in a nodejs server to make an https request to a server with a self-signed cert and need to be able to ignore the invalid ssl cert.

I couldn't find an option for this in the documentation, does anyone know if this is possible?

Jared Sprague
  • 229
  • 4
  • 12

1 Answers1

1

You need to add: agentOptions.ca = [ selfSignedRootCaPemCrtBuffer ];

Node.js request CERT_HAS_EXPIRED

Community
  • 1
  • 1
Melvin M.
  • 3,280
  • 3
  • 15
  • 23