How to ignore SSL certificate errors when using Curl?

To ignore invalid and self-signed certificate checks on Curl, use the -k or --insecure command-line option. This option allows Curl to perform "insecure" SSL connections and skip SSL certificate checks while you still have SSL encrypted communications. If you make an HTTPS request to a resource with an invalid or expired SSL certificate without the -k or --insecure option, you will receive a curl: (60) SSL certificate: invalid certificate chain: error message. You can use https://expired.badssl.com to test Curl commands on insecure hosts with the option to ignore certificate checks.
Loading...