cURL and SSL, connect() time out
The message simply means that the TCP connect procedure hasn't completed without the time allowed for the operation.
If you try to connect to a site that should be available over TCP on the given port then you can suspect that there's a firewall, proxy, NAT, router or other equipment in the way that makes it not work for you.
This is not really a curl related problem and you should be able to verify this by for example running telnet to the same host + port: "telnet [host] [port]" as that should also fail.