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

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:tls_process_ske_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


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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


According to this reported bug on the Debian website here:

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