Use Brewed Curl With Homebrew
When I was trying to install Native Access using Homebrew, I’ve got a super weird curl error that would say that the certificate was expired. This was related to MacOS’s curl being super old and having the wrong certificate chain.
Homebrew provides a newer curl, so you can always workaround it by using the “brewed” version:
HOMEBREW_FORCE_BREWED_CURL=1 brew ...
That will do the trick! 🙃