title: XAMPP PHP OPENSSL openssl_pkey_get_details() crashes webpage
body: <p>I currently have OpenSSL configured in XAMPP on Windows. Following <a href="http://3stepsbeyond.co.uk/2010/12/openssl-and-php-tutorial-part-one/" rel="nofollow">this</a> tutorial, I tried to use the following code:</p>
  
  <pre><code>$privateKey = openssl_pkey_new(array(
      'private_key_bits' =&gt; 1024,
      'private_key_type' =&gt; OPENSSL_KEYTYPE_RSA,
  ));
  openssl_pkey_export_to_file($privateKey, 'private.key');
  $a_key = openssl_pkey_get_details($privateKey);
  file_put_contents('public.key', $a_key['key']);
  openssl_free_key($privateKey);
  </code></pre>
  
  <p>When I open the page I get a "Webpage Not Available" error. I have managed to pinpoint the problem to <code>openssl_pkey_get_details()</code> because if I remove this the page successfully loads. Additionally, a <em>private.key</em> is generated without a problem in the first part of the code. Any help would be appreciated.</p>