To make an HTTPS request using CURL from the command line and ignore SSL verification, you can use the following options
- Using the -k or –insecure Option; curl -k https://example.com or curl –insecure https://example.com
- This option tells CURL to skip SSL verification and proceed with the request.
- Using the -s or –silent Option (Optional)
If you want to suppress the warning message about the insecure connection, you can add the -s or –silent option: curl -k -s https://example.com. curl –insecure –silent https://example.com - Keep in mind that ignoring SSL verification can pose a security risk, as you’re not verifying the identity of the server. Use this option only for testing or development purposes.
- Alternative: Specify a Custom SSL Certificate
If you have a custom SSL certificate, you can specify it using the –cacert option: curl –cacert /path/to/cacert.pem https://example.com
This option tells CURL to use the specified certificate file for SSL verification.