【问题标题】:Failed to install Gitlab - curl (60) ssl certificate安装 Gitlab 失败 - curl (60) ssl 证书
【发布时间】:2016-08-06 07:45:28
【问题描述】:

我试图在this guide 之后在我的 linux 服务器上安装 gitlab 并卡在第二个 setp 中

curl: (60) SSL certificate problem: self signed certificate
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.

关于如何解决这个问题的任何想法?

ANSWER确保正确设置了http_proxy 和https_proxy 变量。

---- 更新---- 设置变量后,我从 curl 得到以下答案

Detected operating system as Ubuntu/trusty.
Checking for curl...
Detected curl...
Running apt-get update... done.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/gitlab_gitlab-ce.list...curl: (60) SSL certificate problem: self signed certificate
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.

Unable to run:
    curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.list?os=Ubuntu&dist=trusty&source=script

Double check your curl installation and try again.

【问题讨论】:

    标签: gitlab


    【解决方案1】:

    使用-k/--insecure 告诉 curl 忽略 SSL 警告。记录在man curl。

    编辑:还要检查您的代理设置,因为您尝试卷曲到的主机实际上具有有效的 SSL 证书。请参阅 curl 的 --proxy 选项。

    【讨论】:

    • curl: (52) Empty reply from server
    • 嗯,我得到一个包含有效数据的 HTTP 200。您是否在某个奇怪的受限网络上运行,也许....?
    • 实际上是的,您的网络正在尝试重定向您的 SSL 流量,该 gitlab url 提供了有效的非自签名证书。您需要重新评估您的网络。
    • 我错过了代理,将其添加到 bash_profile 文件并通过了该点,但是仍然存在问题,请参阅问题更新。
    • 没关系,在这里找到了答案(也许值得更新答案?)stackoverflow.com/questions/7559103/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-11-21
    • 2015-06-05
    • 1970-01-01
    • 2020-09-20
    • 2015-06-05
    • 2014-10-14
    • 2017-04-22
    相关资源
    最近更新 更多