title: Why does openssl_pkey_new() fail?
body: <p>I'm very new to this. Why is <code>openssl_pkey_new()</code> returning false?</p>
  
  <p>I am using XAMPP and there is a an OpenSSL under the <code>Apahce\bin</code> directory.</p>
  
  <p>What obvious beginner mistake am I making?  Maybe it's a matter of SSL configuration?</p>
  
  <p>My goal is to write the two keys into two files.</p>
  
  <hr>
  
  <p><strong><em>Update</em></strong>: as suggested, I used <code>openssl_error_string()</code> and it says <code>error:02001003:system library:fopen:No such process</code>. It sounds like maybe OpenSSL isn't running or isn't in the path??  Any ideas?</p>
  
  <hr>
  
  <p><strong><em>Update</em></strong>: I put <code>c:\xampp\php</code> into the windows path, so that it could find <code>libeay32.dll</code>and restarted Apache.</p>
  
  <p>Now I get <code>error:2006D080:BIO routines:BIO_new_file:no such file</code>.  Any ideas?</p>