5

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

 2 years ago
source link: https://viencoding.com/article/38
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

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

做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
欢迎小伙伴们在下方评论区留言 ~ O(∩_∩)O
文章对我有帮助, 点此请博主吃包辣条 ~ O(∩_∩)O

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK