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?

1 Answer 1

1

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

Node.js request CERT_HAS_EXPIRED

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.