Mac安装curl带SSL,PHP扩展curl,解决SSL peer handshake failed问题

来源:互联网 发布:微信运动数据更新频率 编辑:程序博客网 时间:2024/06/06 05:01

做PayPal的时候遇到这样一个问题
PayPalConnectionException SSL peer handshake failed, the server most likely requires a client certificate to connect
其实这是很多要用到https的时候都会遇到的,尤其是Mac和windows上,因为Mac预装的curl没有不带openssl,PHP貌似也没有装扩展,这里升级一下PHP,把该装的都装上,顺便附带imagick(处理图片的扩展)安装。

brew tap homebrew/dupesbrew tap homebrew/versionsbrew tap homebrew/homebrew-phpbrew install --with-openssl curlbrew install --with-homebrew-curl php71brew install php71-mcrypt php71-imagick
原创粉丝点击