Remember: when you run #curl shipped by Apple with the --cacert flag it won't behave like #curl does everywhere else. As I wrote about last year. I think they're doing it wrong. They think its fine.
https://daniel.haxx.se/blog/2024/03/08/the-apple-curl-security-incident-12604/