2016-04-14 85 views
-1

我试图以下this guide我的Linux服务器上安装gitlab并在这说无法安装Gitlab - 卷曲(60)SSL证书

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. 

第二SETP得到stucked我如何能解决这个问题的任何想法?

答案一定要有http_proxyhttps_proxy变量正确设置。

---- ---- UPDATE 设置变量后,我从卷曲

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. 

回答

1

以下答案告诉卷曲忽略与-k/--insecure SSL警告。记录在man curl

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

+0

'curl:(52)服务器空回复' – BRabbit27

+1

嗯,我得到一个有效数据的HTTP 200。你是否在运行一些奇怪的受限制的网络,也许......? – user2926055

+1

其实是的,你的网络正试图重定向你的SSL流量,该gitlab网址提供了一个有效的非自签名证书。您需要重新评估您的网络。 – user2926055