note 120888 deleted from soapclient.soapclient by crell
| From: | crell@php.net | Date: | Mon, 04 Apr 2022 16:50:10 +0000 |
| Subject: | note 120888 deleted from soapclient.soapclient by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218077@lists.php.net to get a copy of this message | ||
Note Submitter: mkroese at eljakim dot nl
----
Do note that *contrary* to the ssl context option
(http://php.net/manual/en/context.ssl.php#context.ssl.local-pk),
local_pk is NOT a
valid option. For the local_cert option, you should combine the private key with the
certificate file.
Alternatively, if you do want to keep the private key and certificate file separate, you can create
a stream context and pass that as the context option:
<?php
$context = stream_context_create([
'ssl' => [
'local_cert' => '/path/to/cert/file',
'local_pk' => '/path/to/private/key'
]]);
$client = new \SoapClient($wsdl, [
'context' => $context,
// other options
]);