SSL issue after pear channel-update pear.php.net

后端 未结 5 1374
遇见更好的自我
遇见更好的自我 2021-01-05 00:01

I have XAMPP on Windows7. after update the pear.php.net channel with:

pear channel-update pear.php.net

and try for installing new packages,

5条回答
  •  时光取名叫无心
    2021-01-05 01:02

    recently I faced this issue with macOS Sierra with XAMPP 7.0

    I updated pecl channel wiht

    sudo pecl channel-update pecl.php.net
    

    and then I was getting

    Connection to `ssl://pecl.php.net:443' failed:

    My solution is as below

    run php -r "print_r(openssl_get_cert_locations());"

    check default_cert_file path

    then download certificate from http://curl.haxx.se/ca/cacert.pem rename it and place it at default_cert_file path

    then try pecl list-all

    it should work fine

提交回复
热议问题