node-js-libs / curlrequest

A cURL wrapper
MIT License
184 stars 44 forks source link

Peer certificate cannot be authenticated with known CA certificates #45

Open playground opened 8 years ago

playground commented 8 years ago

How to tell it not to verify ssl certificate?

chriso commented 8 years ago

From man curl:

-k, --insecure
              (SSL) This option explicitly allows curl to perform "insecure" SSL connections and transfers.  All  SSL  connections  are
              attempted  to  be made secure by using the CA certificate bundle installed by default. This makes all connections consid-
              ered "insecure" fail unless -k, --insecure is used.

              See this online resource for further details: http://curl.haxx.se/docs/sslcerts.html

Try passing the insecure: true option to curlrequest.

playground commented 8 years ago

Thanks, that works.