I had a similar issue and narrowed it down to an issue related to my macOS user profile, sudo and other users would work. After removing certificates from Keychain I did no longer need, it worked again. I suspect the number of certificates was the problem, not a specific one. In any case, that solved the issue.
geekzter
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Terraform init (MAC) works if I do sudo | 2 | 1275 | October 20, 2020 | |
| Issues with OSX + Terraform | 1 | 309 | July 7, 2020 | |
| Getting error while running terraform init in mac | 1 | 1568 | August 17, 2020 | |
| Registry.terraform.io not responding | 1 | 380 | July 18, 2023 | |
| Terraform init: could not connect to registry.terraform.io | 1 | 14404 | January 26, 2022 |