做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/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew install --with-openssl curl
brew install --with-homebrew-curl php71
brew install php71-mcrypt php71-imagick
viencoding.com版权所有,允许转载,但转载请注明出处和原文链接: https://viencoding.com/article/38