Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Problem with SSL and PHP 5.6



Normal Mode | Print  

Problem with SSL and PHP 5.6
stonecold111
Group: Member
Post Group: Newbie
Posts: 11
Status:
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~
IP: --   


Threads
 stonecold111   Problem with SSL and PHP 5.6 (9 Replies, Read 114763 times)
    |--  stonecold111   # openssl version...   on April 9, 2015, 3:56 pm
    |--  stonecold111   What phpinfo() shows:...   on April 9, 2015, 4:05 pm
    |--  stonecold111   It turns out...   on April 11, 2015, 8:36 am
    |--  divij   Hi, Glad to...   on April 11, 2015, 1:48 pm
    |--  Guest   Hi, great discussion....   on May 29, 2016, 12:23 pm
    |--  Guest   Ok I found...   on May 29, 2016, 1:57 pm
    |--  Guest   Thank you to...   on May 29, 2016, 7:45 pm
    |--  kamui   buy new one...   on November 29, 2020, 1:05 pm
    |--  kensmithss   You can take...   on May 26, 2021, 9:57 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is June 1, 2025, 7:13 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.014