How to ignore cURL certificate checks? [Curl/Bash Code]

To ignore cURL certificate checks for invalid and self-signed certificates, use the -k or --insecure command-line option. If you make a HTTP request to a resource with an invalid or expired SSL certificate without the -k option, you will get "curl: (60) SSL certificate problem: Invalid certificate chain: error message. You can use the https://expired.badssl.com service to test your cURL commands with the option to ignore certificate checks. The Curl/Bash code was automatically generated for the Curl Ignore Certificate Checks example.
Loading...