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~

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-07-20
猜你喜欢
  • 2021-05-25
  • 2021-11-20
  • 2021-11-18
  • 2022-12-23
  • 2019-01-14
  • 2021-05-29
相关资源
相似解决方案