Soap with certificate on windows machine

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
0xhiryuu
Forum Newbie
Posts: 1
Joined: Tue Jan 19, 2010 4:41 am

Soap with certificate on windows machine

Post by 0xhiryuu »

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:

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
        )
    );
 
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!
Post Reply