title: Does PHP SoapClient support HTTPS connections
body: <p>I'm using XAMPP on Windows and try to work with PHP soap extension SoapClient. I'm trying to load a WSDL file hosted in HTTPS site using the following code</p>
  
  <pre><code>&lt;?php
      $myClient=new SoapClient("https://smi.sp.f-secure.com/smi/5.1/services/EchoService?wsdl");
  ?&gt;
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '<a href="https://smi.sp.f-secure.com/smi/5.1/services/EchoService?wsdl" rel="nofollow">https://smi.sp.f-secure.com/smi/5.1/services/EchoService?wsdl</a>' : failed to load external entity "<a href="https://smi.sp.f-secure.com/smi/5.1/services/EchoService?wsdl" rel="nofollow">https://smi.sp.f-secure.com/smi/5.1/services/EchoService?wsdl</a>" in C:\xampp\htdocs\dev\w3schools\soapClient\index.php:2 Stack trace:<br>
    #0 C:\xampp\htdocs\dev\w3schools\soapClient\index.php(2): SoapClient->SoapClient('<a href="https://smi.sp" rel="nofollow">https://smi.sp</a>....')<br>
    #1 {main} thrown in C:\xampp\htdocs\dev\w3schools\soapClient\index.php on line 2</p>
  </blockquote>
  
  <p>Now I took a network capture during the request and saw that HTTPS communication does not work OK on SSL Level. Wireshark shows a packet on Server Key Exchange my workstation responds with:</p>
  
  <blockquote>
    <p>TLSv1 Record Layer: Alert (Level: Fatal, Description: Certificate Unknown)</p>
    
    <p><img src="https://i.stack.imgur.com/zaRUZ.png" alt="Wireshark Screenshot"></p>
  </blockquote>
  
  <p>Using nuSOAP client or soapUI utility from the same computer, I'm able to connect to the service normally. So no certificate problems I guess.</p>
  
  <p>So definately it's something with SOAP extension and SSL communication. Can anyone help? Give hints what to look for?</p>