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.
By default, every SSL connection cURL creates is checked for security. Each TLS connection is tested by verifying that the server certificate is signed by a trusted authority, contains the correct name, and has not expired. The cURL trusted root certificate store comes with your cURL installation.
The -k option allows cURL to continue working even for server connections that are otherwise considered insecure and blocked. Use the -k and --insecure options for development purposes only.
Generate Code Snippets for Curl Ignore Certificate Checks Example