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

10 Replies, 1404 Views

The `-k` option in curl is all about ignoring SSL/TLS certificate validation. So, if you’re working with a server that has a dodgy cert (like self-signed or expired), `-k` lets you bypass those errors and make the request anyway.

It’s not something you’d wanna use all the time, though. Only for testing or when you’re absolutely sure the connection is secure. For more info on SSL certs, Mozilla’s docs (https://developer.mozilla.org/en-US/docs...rtificates) are a great resource.

Messages In This Thread



Users browsing this thread: 2 Guest(s)