curl –insecure example
If you’re trying to access a website over https URL and curl shows you that certificate has expired or may not be trusted, you are likely to get a message like this:
Good news! You can still override this behaviour by running curl with the –insecure command line.
WARNING: be sure you know what you’re doing! this is especially true to knowing what website you’re trying to access. It may be fine to ignore SSL warnings for a local dev environment on your laptop or for accessing internal URLs in your private infrastructure. But anything on the public Internet that gives you an SSL warning must be reviwed before you progress.
How it works: curl –insecure will disable certificate checks but will still encrypt the traffic and download the https URL you provided.