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.
3 Likes