天天看点

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 `'