"What Does -k Do in the Curl Command in Linux? Can Someone Explain?"

10 Replies, 1405 Views

Wow, thanks everyone for the detailed replies! I had no idea the `-k` option in curl was such a double-edged sword. I tried it on a local server with a self-signed cert, and it worked like a charm, but I’ll definitely avoid using it for anything public.

I checked out SSL Labs and OpenSSL like some of you suggested, and they’re super helpful for understanding certs better. One quick follow-up: if I’m working with a self-signed cert, is there a way to make curl trust it without using `-k`? Like, can I add the cert to a trusted list or something?

Thanks again, you guys are awesome!

Messages In This Thread



Users browsing this thread: 1 Guest(s)