note 71306 added to ref.soap
| From: | OlafKrische at osu1 dot php dot net | Date: | Tue, 21 Nov 2006 21:48:55 +0000 |
| Subject: | note 71306 added to ref.soap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119960@lists.php.net to get a copy of this message | ||
If you use SSL with a cert and password authentication:
$wsdl = "https://ws.ecopatz.de/ProductInfo?wsdl";
$pass = 'a password';
$certFile = "./mycert.pem";
$client = new SoapClient($wsdl,
array(
'local_cert' => $certFile,
'passphrase' => $pass
)
);
If you have problems with the certfile like this:
Warning: SoapClient::__construct(): Unable to set local cert chain file `./mycert.pem'; Check
that your cafile/capath settings include details of your certificate and its issuer in
productinfo.php on line 27
then the certFile is probably in the "wrong format" (the wrong format for php maybe). It
worked for me, when i appended the content of the private key file and the certificate file to a
single file "mycert.pem":
cat mycert.key >mycert.pem # mycert.key was the private key
cat mycert.crt >>mycert.pem # mycert.crt was the signed certificate
Thanks to an author somewhere, who pointed to "curl --cert", where this little "so
unimportant" dependency has been mentioned.
----
Server IP: 217.160.72.57
Probable Submitter: 195.227.135.233
----
Manual Page -- http://www.php.net/manual/en/ref.soap.php
Edit -- https://master.php.net/note/edit/71306
Del: integrated -- https://master.php.net/note/delete/71306/integrated
Del: useless -- https://master.php.net/note/delete/71306/useless
Del: bad code -- https://master.php.net/note/delete/71306/bad+code
Del: spam -- https://master.php.net/note/delete/71306/spam
Del: non-english -- https://master.php.net/note/delete/71306/non-english
Del: in docs -- https://master.php.net/note/delete/71306/in+docs
Del: other reasons-- https://master.php.net/note/delete/71306
Reject -- https://master.php.net/note/reject/71306
Search -- https://master.php.net/manage/user-notes.php