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

14 Replies, 1992 Views

Yo, so `-k` in curl is like the "I don’t care about SSL" flag. It’s handy when you’re messing around with local servers or testing environments where the certs aren’t legit.

But honestly, I wouldn’t touch it in prod. It’s like driving without a seatbelt—you might get away with it, but it’s not worth the risk.

If you’re looking for alternatives, check out `openssl` to debug cert issues or use a proper CA to get valid certs. Let’s Encrypt is free and easy to set up!

Messages In This Thread



Users browsing this thread: 1 Guest(s)