Posted By: stonecold111 on April 9, 2015, 3:56 pm | Post: 1 |
Code [root@kl bin]# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013 Just checked my openssl version. |
Posted By: stonecold111 on April 11, 2015, 8:36 am | Post: 3 |
It turns out there are a few changes regarding SSL in PHP 5.6 that some modifications are needed in my case.
1. Run the following command in putty: Code php -r "print_r(openssl_get_cert_locations());" 2. It returns an array like this: Array ( [default_cert_file] => /usr/local/apps/etc/openssl/cert.pem [default_cert_file_env] => SSL_CERT_FILE [default_cert_dir] => /usr/local/apps/etc/openssl/certs [default_cert_dir_env] => SSL_CERT_DIR [default_private_dir] => /usr/local/apps/etc/openssl/private [default_default_cert_area] => /usr/local/apps/etc/openssl [ini_cafile] => [ini_capath] => ) 3. Note that /usr/local/apps/etc/openssl/cert.pem isn't present. Download a cUrl cert bundle , as suggested by this thread from Stackoverflow 4. save the bundle in '/usr/local/apps/etc/openssl/' and rename it as 'cert.pem' Everything has been fixed. I thought it would be troublesome but turned out it was easy as pie~ |
Posted By: divij on April 11, 2015, 1:48 pm | Post: 4 |
Hi,
Glad to know your issue is resolve. Thanks for sharing the solution also. |
Posted By: peopleinside on May 29, 2016, 12:23 pm | Post: 5 |
Hi,
great discussion. I can say: Run: php -r "print_r(openssl_get_cert_locations());" on SSH give me an error: PHP Fatal Error Call to undefined function openssl_get_cert_locations() in Command line code on line 1 so I tried to download the .pem file at this address: https://curl.haxx.se/docs/caextract.html as suggested by the forum topic than uploaded in /usr/local/apps/etc/openssl/ and renamed cert.pem Now switched to PHP 5.6 and logged in Hesk, gone on settings, email and test SMTP and POP 3 now the POP settings don't print any error, is passed but SMTP continue to give error. Tried to remove the cert.pem uploaded by me and with PHP 5.6 the POP 3 test in Hesk fails too. So in the Forum topic the uploading of the cert.pem file resolve the pop issue but not SMTP. I AM using for my email a personal Webiste SSL Comodo certificate. So don't know if the issue is maybe in the cabounde who should be downloaded somewhere else or why POP3 Fetching now works in Hesk but not SMTP. ----------------------- PeopleInside Web, security, open source passionate. |
Posted By: peopleinside on May 29, 2016, 1:57 pm | Post: 6 |
Ok I found the solution and for me is quite different to all discussion posted here.
The solution is not download Ca Boundle and upload into openssl folder but as I Am using already an SSL certificate just add this line in the PHP 5.6 php.ini [openssl] openssl.cafile= /path/to/your/.ca-bundle where "/path/to/your/.ca-bundle" is your patch to your ca-bundle file. All is working now with PHP 5.6 ----------------------- PeopleInside Web, security, open source passionate. |
Posted By: peopleinside on May 29, 2016, 7:45 pm | Post: 7 |
Thank you to SSLS.com Staff who helped me to solve PHP 5.6 / 7 and SSL Issue. I AM always an happy customer of them.
----------------------- PeopleInside Web, security, open source passionate. |
Posted By: kamui on November 29, 2020, 1:05 pm | Post: 8 |
buy new one ssl |
Posted By: kensmithss on May 26, 2021, 9:57 am | Post: 9 |
You can take the help of ClickSSL.Net Team as they helped me to solve this SSL Issue. I have purchased SSL With them. |