Reputation: 21
My PHP program worked fine until several days ago. I suddenly got an error "SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure" from using curl in my php program. I searched on the net and found it may be because my openssl is too old (0.9.8e) and not support the TLS.
I tried "yum update openssl" but it doesn't help as the Openssl hasn't been upgraded and is still 0.9.8e. So, I downloaded and installed a newer version (1.0.2j) from the net. And now, it does displays the new version number by the command "openssl version", but it still displays the old version number by phpinfo() and "curl -V". And of course, it still shows the SSL error while running the php program.
I am very new in server setting. How can I update openssl version in php and curl?
Upvotes: 0
Views: 3279
Reputation: 21
I finally solve the problem by "downloading and installing" the latest version of OpenSSL, cUrl and PHP, and setting the configure for the new paths of OpenSSL and cUrl for PHP.
Upvotes: 0
Reputation: 2145
You have to update php itself, as it comes with ssl compiled in. The libssl on the system is not used by php. It might also be encapsulated in the php-curl package.
Upvotes: 1