I discovered that my AVG antivirus was causing issues with curl SSL connections on my local machine. Even after disabling enhanced firewall protection, I still experienced problems until I completely uninstalled AVG. This resolved the issue.