title: openssl_pkcs12_read fails
body: <p>I am trying to read a p12 formatted certificate file with php function <code>openssl_pkcs12_read</code>. My code looks like this:</p>
  
  <pre><code>&lt;?php
  
  $fname  = "./client-cert.p12";
  $handle = fopen($fname, "r") or die ("Unable to open file!");
  $p12buf = fread($handle, filesize($fname));
  fclose($handle);
  $certs = array();
  $pass  = "bliblablup";
  
  $result = openssl_pkcs12_read($p12buf, $certs, $pass);
  
  if ( $result ) {
      print_r( $certs );
  } else {
      print_r( "Error!\r\n");
  }
  </code></pre>
  
  <p>I am always running into the error-branch of <code>if($result) ...</code> and cannot find any information how to get more details on the error condition. Any hints welcome.</p>