Curl: disable certificate verification

Solution 1:

Yeah, you can do that. From curl --help or 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 considered "insecure" fail unless -k, --insecure is used.

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

Solution 2:

curl -k or curl --insecure does NOT fix this particular error condition:

curl: (51) SSL peer certificate

Tags:

Linux

Curl