ich habe ein rießiges Problem mit der Nutzung SOAP über SSL, also https. Habe Stundenlang gelesen und glaube das es etwas mit der Akzeptanz des Zertifikats des Zielserver zu tun hat. Hat jemand eine Idee wie ich ein entsprechendes Vertrauensverhältnis zum SoapServer erstelle?
- Code: Select all
$opts = array
(
'ssl' => array(
'local_cert' => $pem,
'verify_host' => true,
'allow_self_signed' => true,
)
);
$ctx = stream_context_create($opts);
$this->client = new SoapClient('https://xxxxxxxxx',array('trace' => 1,'exception' => 1));