SOAP and HTTPS

This is a discussion on SOAP and HTTPS within the PHP Language forums, part of the PHP Programming Forums category; Hi, I try to connect my php-soap-client to a https-webservice("https:// xxxxxxx?wsdl"), but it ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008
rahs@net.ethz.ch
 
Posts: n/a
Default SOAP and HTTPS

Hi,
I try to connect my php-soap-client to a https-webservice("https://
xxxxxxx?wsdl"), but it doesn't work.

I tried these possibilites:

1.) $client = new SoapClient("https://xxxxxxx?wsdl");
-> SoapClient-ERROR: " SSL operation failed with code 1. OpenSSL Error
messages:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol, Failed to enable crypto, Could not connect to host"

2.) $client = new SoapClient("https://xxxxxxx?wsdl",
array("local_cert"=>"cert_key.pem"));
cert_key.pem is the server-certificate of https://xxxxxxx
-> SoapClient-ERROR: "Unable to set local cert chain file
`cert_key.pem`; Check that your cafile/capath settings include details
of your certificate and its issuer"

When I try to call the webservice in a browser, then I am asked to
accept the server-certificate. When I accept, everything works fine.
How can I force my soap-client to accept this server-certificate
(automatically)? Does the soap-client expects the certificate of the
server or my client-certificate. I've read a post about this subject
here (http://de.php.net/manual/en/ref.soap.php#71306), but don't
understand it. I can't imagine that the soap-client really expects the
private key of the server.....

Or is there a possibility to configure php (or the webserver) to
accept certain certificates or to accept all certificates?

Thanks for any help




Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:34 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0