安装symfony 2时,安装程​​序无法加载https流

i am having problem with installing symfony2, specifically running this command:

php installer  //installer is from getcomposer page

error is:

Download failed: file_get_contents (https://getcomposer.org/composer.phar): 
failed to open stream: The attempt to connect failed because the connected party 
after a time did not properly respond or established connection failed because 
connected host computer failed to respond.

Naturally, i though problem is that https stream is not enabled in php, or that openssl is not loaded but that is not the problem.

Running

  php -r var_dump(stream_get_wrappers());

i checked that https wrapper is there. Also, in php.ini (correct one, the one i use for php command line use) have php_openssl loaded and also allow_url_open is On. I also cannot find any related error in php error log or apache error log. Any suggestion what can be the problem?