Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

SoapClient HTTPS Error
Matt Kammersell
Jr. Member
Total Posts:  16
Joined:  2007-09-21
Las Vegas, NV

Hey everyone, I spent a pretty significant amount of time today on this issue so I thought I’d add the solution to help anyone that’s looking for information on this or had the same problem since there wasn’t information on this particular issue here.

The problem was I was receiving a WSDL error trying to run a previously functional service, the only difference is we moved to https when we went to production.  The error:

SOAP-ERRORParsing WSDLCouldn't load from '' : failed to load external entity ""

The solution was, I changed :

$proxy = new SoapClient($uri);
$proxy = new SoapClient($uri,array('local_cert'=>'/tmp/.cert'));
After running an openssl command to put the certificate in /tmp:
echo -openssl s_client -connect WEBSITE_REPLACED:443 sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/$SERVERNAME.cert

Hopefully this helps those with that error, which is weird when you can cURL the WSDL and see it.

Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top