Featured
Ignoring SSL Certificate Issues with cURL
Gabriel Manricks
Chief Architect at ClearX
When making a request with cURL to a secured (HTTPS) endpoint, cURL will automatically verify the authenticity and validity of the certificate during the handshake before sending the request. There are times when you might want to bypass this check and tell cURL to make the request anyways; for example, on a development server with a self-signed certificate.
The Short Answer
You can bypass the certificate verification by adding the [.inline-code]-k[.inline-code] or [.inline-code]--insecure[.inline-code] flag to your request.