Is curl insecure by default, or are there steps to secure it properly?

18 Replies, 1124 Views

Hey! Yeah, curl insecure by default is a thing, but it’s not like you’re doomed. You can totally lock it down.

First, check your curl version—older ones are way worse. Update to the latest if you can. Then, yeah, forcing TLS 1.2+ is a good start. You can use the `--tlsv1.2` flag or set it in your config.

For certs, curl does verify them by default, but you can double-check with `--cacert` to specify a CA bundle. If you’re paranoid, tools like SSL Labs or ssllabs.com can help test your setup.

Also, check out curl’s docs—they’ve got a whole section on hardening. It’s not *that* much work once you get the hang of it.

Messages In This Thread



Users browsing this thread: 1 Guest(s)