How to safely use curl ignore certificate for testing purposes?

14 Replies, 2040 Views

Hey there! Using `-k` is totally fine for testing, but yeah, don’t make it a habit lol.

If you wanna log errors, you can combine `-k` with `-v` for verbose output and pipe it to a file:
`curl -k -v https://example.com > debug.log 2>&1`

This’ll give you all the details, including cert errors, so you can see what’s up.

Messages In This Thread



Users browsing this thread: 2 Guest(s)