title: How to enable HTTPS stream wrappers
body: <p>I installed php5 on my windows system and tried to execute the following script with a command-line console:</p>
  
  <pre><code>&lt;?php
  // load in credentials
  $creds = parse_ini_file('/etc/aws.conf');
  
  // Define query string keys/values
  $params = array(
      'Action' =&gt; 'DescribeAvailabilityZones',
      'AWSAccessKeyId' =&gt; $creds['access_key'],
      'Timestamp' =&gt; gmdate('Y-m-d\TH:i:s\Z'),
      'Version' =&gt; '2008-05-05',
      'ZoneName.0' =&gt; 'us-east-1a',
      'ZoneName.1' =&gt; 'us-east-1b',
      'ZoneName.2' =&gt; 'us-east-1c',
      'SignatureVersion' =&gt; 2,
      'SignatureMethod' =&gt; 'HmacSHA256'
  );
  
  // See docs
  // http://tr.im/jbjd
  uksort($params, 'strnatcmp');
  $qstr = '';
  foreach ($params as $key =&gt; $val) {
      $qstr .= "&amp;{$key}=".rawurlencode($val);
  }
  $qstr = substr($qstr, 1);
  
  // Signature Version 2
  $str = "GET\n"
       . "ec2.amazonaws.com\n"
       . "/\n"
       . $qstr;
  
  // Generate base64-encoded RFC 2104-compliant HMAC-SHA256
  // signature with Secret Key using PHP 5's native 
  // hash_hmac function.
  $params['Signature'] = base64_encode(
      hash_hmac('sha256', $str, $creds['secret_key'], true)
  );
  
  // simple GET request to EC2 Query API with regular URL 
  // encoded query string
  $req = 'https://ec2.amazonaws.com/?' . http_build_query(
      $params
  );
  $result = file_get_contents($req);
  
  // do something with the XML response
  echo $result;
  </code></pre>
  
  <p>But it says that it's unable to find the wrapper "https" and asks if I forget to enable it when I configured PHP. </p>
  
  <p>What is the problem and how to settle it?</p>