how can i use using pkcs12 format eg .p12 certificates with php soapclient
i am using the following code but i throwing fatal exception
$client = new SoapClient('SalaryDeclarationService.wsdl',array('login' =>'tester','password'=>'tester','local_cert'=>'res.p12','trace'=>1 ));
exception that i am getting
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in C:\wamp\www\webservice\webclient.php:27 Stack trace: #0 [internal function]: SoapClient->doRequest('<?xml version="...', 'https://tst.its...', '', 1, 0) #1 C:\wamp\www\webservice\webclient.php(27): SoapClient->soapCall('CheckInteropera...', Array) #2 {main} thrown in C:\wamp\www\webservice\webclient.php on line 27

i tried to convert .p12 file to .pem file using openssl utility but it is asking for import password that i don't have.
please help me
Thank you.

    This:

    evolvan wrote:

    [HTTP] Could not connect to host

    doesn't sound like your problem has anything to do with certificates.

      bradgrafelman;10966310 wrote:

      This:doesn't sound like your problem has anything to do with certificates.

      When i call service without supplying certificate it works. but it is required to use certificate. Please give some example or code sorry i am new to web services

        Write a Reply...