What does -k do in curl command Linux? Can someone explain its purpose?

14 Replies, 2159 Views

The `-k` flag is a lifesaver when you’re dealing with self-signed certs or expired ones. It’s like a "trust me bro" for curl.

But yeah, it’s not something you’d wanna use in prod. If you’re hitting a public API or something, you’re better off fixing the cert issue instead of bypassing it.

For testing, it’s fine. But if you’re looking for a safer way, maybe try `curl --cacert` to specify a custom CA cert.

Messages In This Thread



Users browsing this thread: 1 Guest(s)