What is similar to -k / --insecure of CURL for Nodejs?

Viewed 9

I have a https connection to make in nodejs and the certificate and keys are not compatible with a CA so need to ignore the host/domain name verification check like the --insecure/-k flag of curl tool.

I tried the request in curl and its working. The same thing I need to implement in Nodejs env. The library I am using is https. What extra options should I use for the same?

0 Answers
Related