Soap with certificate on windows machine
Posted: Tue Jan 19, 2010 5:35 am
I have a problem on my windows test Environment. I'm getting this error:
SoapClient::SoapClient() Unable to set local cert chain file...
On my linux box everything works fine.
Here's code snippet that fails:
I tried almost everything, with path to cert file, but I have not find solution.
Is this some windows bug?
If something is unclear do not hesitate to ask!
SoapClient::SoapClient() Unable to set local cert chain file...
On my linux box everything works fine.
Here's code snippet that fails:
Code: Select all
$s_uri_wsdl='https://businessnet.bph.pl/bankconnect/bank-connect/service.wsdl';
// linux
// $s_cert_path='cert/certyfikat.pem';
// windows
$s_cert_path='d:\\server\root\ms\bph/BPHConnect\cert\certyfikat.pem';
$s_passphrase='123456';
new SoapClient
(
$s_uri_wsdl,
array
(
'local_cert' => $s_cert_path,
'passphrase' => $s_passphrase
)
);
Is this some windows bug?
If something is unclear do not hesitate to ask!