php - How to use PHP5 SoapClient::SoapClient() with client certificate? -
The
I need to use PHP SOAP client with myfile-ca.crt I Client Certificate (CRT file) How can I tell Sopclant Constructor to work with?
I have experience with PHP SOAP client, but I do not have to ever work with a safe soap client.
Any help
When creating your SoapClient, Can pass a configuration array in the form. This array option allows local_cert
. The local_ cert option should point to the certificate file (in my experience it was necessary to get the full path).
$ wsdl = "service.wsdl"; $ Cert = "c: \ secure_cert \ webservice.pem"; $ Client = new SOAP client ($ wsdl, array (= 'local_cert' & gt; $ cert);
Also see examples here
Note: I always Given .pem files; Not sure that .crt is the same / does the same thing ...?
Comments
Post a Comment