How to ignore invalid and self signed ssl connection errors with curl

htt‮p‬s://www.lautturi.com
How to ignore invalid and self signed ssl connection errors with curl

To ignore invalid and self-signed SSL connection errors with curl, you can use the --insecure option.

Here is an example of how to use curl with the --insecure option to download a file from a server with an invalid or self-signed SSL certificate:

curl --insecure https://example.com/file.txt

This will download the file.txt file from the https://example.com server, ignoring any SSL errors.

Note that using the --insecure option can make your connection vulnerable to man-in-the-middle attacks, and should only be used when necessary.

Created Time:2017-10-28 21:39:03  Author:lautturi