Error when running terraform init

I also had the same issue. Thankfully discovered this post, tried to run terraform init using sudo which worked and got me trying this Key chain maintenance, which was a pain in and of itself. I had to remove several dozen before terraform worked, and I had to enter my password for each certificate being removed.

I also had tried curl and found no issues, so I’m not sure why the terraform command had this issue, but glad to have a way to fix it.

Apple Keychain Access: https://support.apple.com/guide/keychain-access/get-information-about-a-certificate-kyca15178/10.5/mac/10.15

It may not be of any real consequence, but I found a ton of expired certificates installed thanks to my use of the “Microsoft Remote Desktop” application.