How to safely use curl ignore certificate for testing purposes?

14 Replies, 2034 Views

Yep, `-k` is the flag for *curl ignore certificate* checks. It’s not secure, but for testing, it’s fine.

If you wanna log errors, you can use `-s` for silent mode and `-S` to show errors, then redirect to a file:
`curl -k -s -S https://example.com > output.log 2>&1`

This’ll keep things clean but still log any issues.

Messages In This Thread



Users browsing this thread: 1 Guest(s)