> >On Jan 17, 2007, at 9:10 PM, Roland Cruse wrote: > >> >>> >>> Are you sure the cURL the php-cli is using has SSL capabilities? >>> >> Thanks for the response. >> >> I do not know.... > >Here is some code for checking your curl SSL support: > <snip> > Excellent! ... curl version 7.15.5 curl ssl version OpenSSL/0.9.8a >You might also have a problem with your curl-ca-bundle.crt file. On >unix it should live in /usr/share/curl/curl-ca-bundle.crt and on >windows c:\windows\curl-ca-bundle.crt or c:\windows\ca-bundle.crt >You can google curl-ca-bunble.crt to get a fresh one. Here is where I found a crt. Though it is not exactly named as your example. /etc/pki/tls/certs/ca-bundle.crt This seems to be a good link regarding cURL and PHP: http://bobcares.com/article47.html which I can use if cURL is my problem. > >That being said, are you using the built in PHP5 soap client? AFAIK >that does not use CURL but rather uses the built in https stream. >Make sure you compiled php with --with-openssl. You can check the >output of phpinfo(). Try running: php -i | grep ssl You should >see the --with-openssl somewhere. I am using the php5 soap extension. The https stream you mention might that only work under apache/php module and not the php-cli? I am using PHP Version => 5.1.2 Here is a cut and paste from phpinfo.php ... openssl OpenSSL support enabled OpenSSL Version OpenSSL 0.9.8a 11 Oct 2005 Also this works on the command line: curl https://the-secure-url-that-would-not-work-for-new-soapclient?WSDL for what it is worth Thanks so much for your help. Roland > > > >-Tim > > >> >>> On 1/17/07, Roland <roland.cruse@vrs-soft.com> wrote: >>>> Hi >>>> >>>> I am not able to connect to an wsdl endpoint if I using an ssl >>>> url in >> a >>> php >>>> cli script. >>>> >>>> $client = new >>> SoapClient("https://api.foo.com/webservices/foo.asmx?WSDL"); >>>> >>>> The above call generates a few warnings and then a few fatal errors: >>> Below >>>> is the first warning. >>>> >>>> Warning: SoapClient::__construct(): Failed to enable crypto... >>>> >>>> The above url works if the "https" is changed to "http". Also if the >>> script >>>> is made to run under apache the https url works. cURL is enabled on >> the >>> php >>>> 5.1.2 build. >>>> >>>> I can find very little about using an ssl endpoint for a php5 >> soapclient >>> in >>>> a cli script. >>>> >>>> Any clues would be very much appreciated...please. >>>> >>>> Thanks >>>> >>>> -- >>>> PHP Soap Mailing List (http://www.php.net/) >>>> To unsubscribe, visit: http://www.php.net/unsub.php >>>> >>>> >> >> ***************************************************************** >> >> IMPORTANT NOTICE >> >> The information in this e-mail and any attached files is >> CONFIDENTIAL and may be legally privileged or prohibited from >> disclosure and unauthorized use. The views of the author may not >> necessarily reflect those of the Company. This communication is >> intended solely for the addressee, or the employee or agent >> responsible for delivering such materials to the addressee. If you >> have received this message in error please return it to the sender >> then delete the email and destroy any copies of it. If you are not >> the intended recipient, any form of reproduction, dissemination, >> copying, disclosure, modification, distribution and/or publication >> or any action taken or omitted to be taken in reliance upon this >> message or its attachments is prohibited and may be unlawful. >> >> At present the integrity of e-mail across the Internet cannot be >> guaranteed and messages sent via this medium are potentially at >> risk. All liability is excluded to the extent permitted by law for >> any claims arising as a result of the use of this medium to >> transmit information by or to VillaDirect Management LLC. >> >> -- >> PHP Soap Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php