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

14 Replies, 1949 Views

Hey everyone,
So, I was messing around with the curl command in Linux, and I came across this `-k` option. I’m like, *what does -k do in curl command Linux?*

From what I gathered, it’s used to ignore SSL certificate errors. Like, if you’re hitting a site with a self-signed or expired cert, `-k` lets you bypass that. Kinda handy but also risky, ya know?

But I’m still a bit confused—like, when would you actually *need* to use it? Is it just for testing or what? Also, is it safe to use in prod?

Anyone got more deets or examples? Thanks in advance!

P.S. Sorry if this is a noob question, still learning the ropes here 😅

Messages In This Thread
What does -k do in curl command Linux? Can someone explain its purpose? - by - 26-04-2024, 05:26 AM



Users browsing this thread: 1 Guest(s)