How to safely use curl ignore certificate for testing purposes?

14 Replies, 2022 Views

Hey! Yeah, the `-k` or `--insecure` flag is exactly what you need to *curl ignore certificate* checks. It’s not ideal for production, but for testing, it’s fine.

If you wanna log errors, you can redirect the output to a file like this:
`curl -k https://example.com > output.log 2>&1`
This way, you’ll capture everything, including errors.

Just be careful not to use this in a live environment, ya know?

Messages In This Thread



Users browsing this thread: 1 Guest(s)