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

$ 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

using the --cacert option.

If this HTTPS server uses a certificate signed by a CA represented in

the bundle, the certificate verification probably failed due to a

problem with the certificate (it might be expired, or the name might

not match the domain name in the URL).

If you'd like to turn off curl's verification of the certificate, use

the -k (or --insecure) option.

Error: Failed to download resource "git--html"

Download failed: https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.27.0.tar.xz

==> Auto-updated Homebrew!

Updated 1 tap (homebrew/cask).

==> Updated Casks

balenaetcher gzdoom poi strawberry

cabal hstracker stella trilium-notes

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.

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre2.rb

/usr/bin/curl --disable --globoff --show-error --user-agent Homebrew/2.3.0\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.11.6\)\ curl/7.43.0 --retry 3 --location --silent --head --request GET https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.27.0.tar.xz

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

/usr/bin/curl --disable --globoff --show-error --user-agent Homebrew/2.3.0\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.11.6\)\ curl/7.43.0 --retry 3 --location --range 0-1 --dump-header - --write-out \%\{http_code\} --output /dev/null https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.27.0.tar.xz

/usr/bin/curl --disable --globoff --show-error --user-agent Homebrew/2.3.0\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.11.6\)\ curl/7.43.0 --fail --retry 3 --location --remote-time --continue-at 0 --output /Users/xxxx/Library/Caches/Homebrew/downloads/af92f79273b58e47216b46d936335255b08e1eb74369b4714bac1c0e0650b50e--git-htmldocs-2.27.0.tar.xz.incomplete https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.27.0.tar.xz

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

using the --cacert option.

If this HTTPS server uses a certificate signed by a CA represented in

the bundle, the certificate verification probably failed due to a

problem with the certificate (it might be expired, or the name might

not match the domain name in the URL).

If you'd like to turn off curl's verification of the certificate, use

the -k (or --insecure) option.

Error: Failed to download resource "git--html"

Download failed: https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.27.0.tar.xz

/usr/local/Homebrew/Library/Homebrew/download_strategy.rb:312:in `rescue in fetch'

/usr/local/Homebrew/Library/Homebrew/download_strategy.rb:309:in `fetch'

/usr/local/Homebrew/Library/Homebrew/resource.rb:131:in `fetch'

/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:988:in `each'

/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:988:in `fetch'

/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:329:in `install_formula'

/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:261:in `block in install'

/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:259:in `each'

/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:259:in `install'

/usr/local/Homebrew/Library/Homebrew/brew.rb:110:in `'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值