php curl ssl certificate problem,解决macOS系统curl报告https证书不正确(curl: (60) SSL certificate problem: Inval…

  • Post author:
  • Post category:php


$ brew install git -s -d -v –env=std

Warning: You are using macOS 10.11.

We (and Apple) do not provide support for this old version.

You will encounter build failures with some formulae.

Please create pull requests instead of asking for help on Homebrew’s GitHub,

Discourse, Twitter or IRC. You are responsible for resolving any issues you

experience while you are running this old version.

Updating Homebrew…

==> Downloading https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.27.0.

curl: (60) SSL certificate problem: Invalid certificate chain

More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a “bundle”

of Certificate Authority (CA) public keys (CA certs). If the default

bundle file isn’t adequate, you can specify an alternate file<