NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
OpenSSL Error messages: error:14077410:SSL


Joined: 17 Dec 2013
Posts: 13
Reply with quote
Hi

When I try to use $xml = simplexml_load_file($url);

I get the following error:

Code:
Warning: simplexml_load_file(): SSL operation failed with code 1. OpenSSL Error messages: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure


i think there is SSL setting I need to change.

Please can someone point me in the right direction?

Thanks for reading.
View user's profileFind all posts by kathekasSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
This is probably not the best forum for that question; NuSphere prefer PhpED related questions Wink

The cause is possibly the system that you are connecting from using PHP has incompatible SSL ciphers compared with the remote system, causing the handshake to fail.

I think PHP uses curl for that request, but using default options. You may find you can work around the problem by using PHP curl directly to get the file, because then you could try changing the curl options to make them work.

Possibly the correct solution is that an update is required on your PHP system so that it has newer versions of SSL/TLS and/or PHP curl.

If your $url is not secure, you could post it then I could do a test on it to provide more information.
View user's profileFind all posts by plugnplaySend private message


Joined: 17 Dec 2013
Posts: 13
Reply with quote
Thanks.

I should have mentioned I am running the script on the PHPED environment. When run on XAMP the code does not fail
View user's profileFind all posts by kathekasSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
Possibly you are running the code using the PhpED web server (SRV) ?

SRV supports absolutely normal PHP, but it might not have all the required modules installed for your SSL connection. By default a whole bunch of modules are commented out.

You can run PhpED projects using your XAMP, which is what I do. Personally I never use SRV.

If you are already running PhpED through your XAMP then something strange is going on because I have never seen PhpED or the NuSphere debugger affect the execution of PHP code when running through Apache.
View user's profileFind all posts by plugnplaySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
sslv3 alert handshake failure - means your server behind the URL rejected SSLv3 and there is a good reason to reject this version of protocol on all public servers. You have to switch to TLS 1.1 or higher.
If this is a development server, you can enable SSLv3.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
OpenSSL Error messages: error:14077410:SSL
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic