从主服务器构建istio / istio-curl:(60)SSL证书问题

问题描述 投票:1回答:1

根据istio/istio,我尝试使用mastermake build构建https://github.com/istio/istio/wiki/Using-the-Code-Base。当构建脚本尝试下载istio-proxy时,curl退出,错误代码:

...
Downloading Envoy: curl -fLSs https://github.com/istio/proxy/releases/download/1.0.2/istio-proxy-1.0.2-macos.tar.gz to /work/out/darwin_amd64/release/envoy-1.0.2
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html
...

我访问过https://curl.haxx.se/docs/sslcerts.html,下载最新版本cacert.pem并放在/etc/ssl/certs/cacert.pem中。

毕竟我可以手动下载istio-proxy-1.0.2-macos.tar.gz(使用curl

curl -L https://github.com/istio/proxy/releases/download/1.0.2/istio-proxy-1.0.2-macos.tar.gz --output some-output-file
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   620  100   620    0     0   1383      0 --:--:-- --:--:-- --:--:--  1383
100 7947k  100 7947k    0     0   631k      0  0:00:12  0:00:12 --:--:-- 1359k

,但是在执行make build期间仍会发生错误。

[将curl-k一起使用(使用SSL时允许不安全的服务器连接),请获取You are being redirected.

<html><body>You are being <a href="https://github-production-release-asset-2e65be.s3.amazonaws.com/75322405/f13ffa80-b53b-11e8-9527-2a586cbda4ad?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200304%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20200304T111428Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=73a2788ecc120b520a6ddeb237b8bbd74a035f71e3aed8f5ee2de6f463abf3fc&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;response-content-disposition=attachment%3B%20filename%3Distio-proxy-1.0.2-macos.tar.gz&amp;response-content-type=application%2Foctet-stream">redirected</a>.</body></html>

OSmacOS Catalina 10.15.1

curl makefile ssl-certificate istio envoyproxy
1个回答
0
投票

tmp解决方案 ->-k选项添加到

...
if command -v curl > /dev/null; then
    if curl --version | grep Protocols  | grep https > /dev/null; then
      DOWNLOAD_COMMAND='curl -kfLSs'
      return
...

bin/init.sh =>使用DOWNLOAD_COMMAND的地方,使用不安全的连接。

我知道这是个坏主意...

© www.soinside.com 2019 - 2024. All rights reserved.