title: SoapClient not sending certificate
body: <p>I've been reading all the questions/answers I could find but none have solved my problem..</p>
  
  <p>here's the connection to the same url using cURL and a certificate($pem = absolute path to .pem file)
  this works</p>
  
  <pre><code>    $ch = curl_init($wsdl); 
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); 
      curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1);
      curl_setopt($ch, CURLOPT_SSLCERT, $pem);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
      $response = curl_exec($ch);
  </code></pre>
  
  <p>End here is the code I tried to connect to the wsdl through SOAP</p>
  
  <pre><code>$client  = new SoapClient($wsdl, array('local_cert' =&gt; $pem));
  </code></pre>
  
  <p>Even tried loading the contents of the certificate in 'local_cert'</p>
  
  <pre><code>$client  = new SoapClient($wsdl, array('local_cert' =&gt; file_get_contents($pem)));
  </code></pre>
  
  <p>In both lines of soap code I get an error from the server saying that I'm not authorised...</p>
  
  <p>do I need to enable something before the certificate is being sent?</p>