php soap client can't load from https wsdl link...

October 11, 2019 1.2k views
PHP Linux Commands

I have been trying to load a particular https wsdl via php soapclient.
The error that I am getting is:

SOAP-ERROR: Parsing WSDL: Couldn’t load from ’https://xxxx.wsdl’ : failed to load external entity “https://xxxx.wsdl

Moreover I also try to “Curl https://xxxx.wsdl” as well. The error that I am getting is:

curl: (35) error:141A318A:SSL routines:tlsprocessske_dhe:dh key too small

I am able to view the particular wsdl via browser.

The weird thing is that, my colleague has ubuntu 18.04 installed on his machine and he does not have any problems. For your information, I have debian 10 installed and we both have the same IP address.

We are totally lost and will appreciate any guidance.

Best Regards

1 Answer

Hello,

According to this reported bug on the Debian website here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907788

This is because the remote site uses a small DH key.

The solution here would be to get the owner of the site to upgrade this. If this is not doable, you could remove CipherString = DEFAULT@SECLEVEL=2 from /etc/ssl/openssl.cnf.

Hope that this helps!
Regards,
Bobby

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!