Bug #49230 [Com]: error using SoapClient with certificates in PHP
| From: | siobhan67843 at gmail dot com | Date: | Wed, 12 Feb 2020 08:10:54 +0000 |
| Subject: | Bug #49230 [Com]: error using SoapClient with certificates in PHP | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-28525@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=49230&edit=1
ID: 49230
Comment by: siobhan67843 at gmail dot com
Reported by: nirjal_nirvana at hotmail dot com
Summary: error using SoapClient with certificates in PHP
Status: Not a bug
Type: Bug
Package: Website problem
Operating System: Windows XP
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
You can simply update the version of the PHP or check the database connectivity. For instant support
related to the Change Windows Live Mail Password please visit http://www.emailcustomerservice247.com/change-windows-live-mail-password/
for the best solution.
Previous Comments:
------------------------------------------------------------------------
[2018-03-10 07:04:57] arif432137 at gmail dot com
I love that coding info and it now perfectly works on my PC, but sometimes it makes crashes on my
windows. which I resolve by https://babasupport.org/microsoft/windows-customer-service/150
this is a nice webpage I found.
------------------------------------------------------------------------
[2009-08-12 09:50:21] bjori@php.net
This is not a problem with the www.php.net website.
Furthermore, we only support binaries from php.net, not xampp.
...And this is not a support forum. If you really believe this is a problem in the PHP language
itself then create short, but *complete* (i.e. 192.158.51.212 doesn't work for me, neither does
test.asmx) reproduce example and refile the bug report in the proper category.
-Hannes
------------------------------------------------------------------------
[2009-08-12 05:58:16] nirjal_nirvana at hotmail dot com
Description:
------------
Hi,
I have been trying to access webservice in asp.net using php client. The webservice requires the
use of a certificate,
I've downloaded the certificate from a CA server thats from a
windows server 2008 and the client certificate has a .cer extension.
When I use the certificate from an asp.net client the webservice is
consumed, but when I try it from php I get a warning and an error
Reproduce code:
---------------
$soap = new SoapClient('https://192.168.51.212/test.asmx?wsdl',
array
( 'local_cert' => './path/nkCert.cer'
));
}
catch (Exception $e)
{
echo "Caught exception: ". $e->getMessage() . "\n";
}
Actual result:
--------------
Warning: SoapClient::SoapClient() [soapclient.soapclient]: Unable
to set private key file `C:\xampp\htdocs\path\nkCert.cer' in C:\xampp
\htdocs\CertApp2.php on line 40
Warning: SoapClient::SoapClient() [soapclient.soapclient]: failed to
create an SSL handle in C:\xampp\htdocs\CertApp2.php on line 40
Warning: SoapClient::SoapClient() [soapclient.soapclient]: Failed to
enable crypto in C:\xampp\htdocs\CertApp2.php on line 40
Warning: SoapClient::SoapClient(https://192.168.51.212/test.asmx?wsdl)
[soapclient.soapclient]: failed to open stream: operation failed in C:
\xampp\htdocs\CertApp2.php on line 40
Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O
warning : failed to load external entity "https://192.168.51.199/
MGACalls.asmx?wsdl" in C:\xampp\htdocs\CertApp2.php on line 40
Caught exception: SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://192.168.51.212/test.asmx?wsdl' :
failed to load external
entity "https://192.168.51.212/test.asmx?wsdl"
Fatal error: Call to a member function __getFunctions() on a non-
object in C:\xampp\htdocs\CertApp2.php on line 51
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=49230&edit=1