title: Get error when using any openssl function about config file despite passing location to the function in PHP
body: <p>I'm trying to create a key pair using PHP's openssl functions, but I keep getting the error:</p>
  
  <pre><code>error:0E06D06C:configuration file routines:NCONF_get_string:no value
  </code></pre>
  
  <p>despite passing it the config file location (it exists in that location, I checked):</p>
  
  <pre><code>$res = openssl_pkey_new( array('config' =&gt; '/etc/ssl/openssl.cnf' ));
  
  //Print errors
  while ($msg = openssl_error_string()) echo $msg . "d&lt;br /&gt;\n";
  </code></pre>
  
  <p>and even creating a symlink in <code>/usr/local/ssl/openssl.cnf</code> didn't fix the problem.</p>
  
  <p>When I check <code>phpinfo()</code> it shows that SSL is enabled.</p>
  
  <p>What am I doing wrong?</p>