I am attempting to create a PHP SOAP connection to a .NET Web Service that has a self-signed certificate in order to lock down the service for communication over HTTPS. I co
A side note: there is a way to make successful SOAP request and keep the private key and certificate file separated. To do this, you have to create a stream context and pass that as the context option:
array(
"local_cert" => "C:\\Certs\client_cert.pem",
"local_pk" => "/path/to/private/key"
)
)
);
$client = new \SoapClient($wsdl, array("context" => $context));