我被困在防火墙后面,所以必须使用HTTPS来访问我的GitHub存储库.我在Windows XP上使用cygwin 1.7.7.
我已经尝试将遥控器设置为https://username@github.com/username/ExcelANT.git,但是提示输入密码,但是一旦我输入密码就没有做任何事情.
https://username:<password>github.com/username/ExcelANT.git并从头开始克隆空仓库,但每次它给我同样的错误
错误:SSL证书问题,验证CA证书是否正常.详细信息:
错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:访问https时出现证书验证失败:https://github.com/username/ExcelANT.git/info/refs
打开GIT_CURL_VERBOSE=1给我
*关于connect()到github.com端口443(#0)
*尝试207.97.227.239 ...*成功设置证书验证位置:
*CAfile:无
CApath:/ usr/ssl/certs
*SSL证书问题,验证CA证书没问题.详细信息:
错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败
*过期已清除
*关闭连接#0
*关于连接()到github.com端口443(#0)
*尝试207.97.227.239 ...*成功设置证书验证位置:
*CAfile:无
CApath:/ usr/ssl/certs
*SSL证书问题,验证CA证书是否正常.细节:
错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败
*过期已清除
*关闭连接#0
错误:SSL证书问题,验证CA证书是否正常.详细信息:
错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:访问https时出现证书验证失败:https://github.com/username/ExcelANT.git/info/refs
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
这是我的防火墙,cygwin还是什么问题?
我没有在Git配置中设置HTTP代理,但是它是一个需要NTLM身份验证的ISA服务器,而不是基本身份,所以除非有人知道如何强制git使用NTLM,否则我会被打破.
我正在使用Mikeal的请求(https://github.com/mikeal/request)向服务器发出https请求.但是,我一直收到CERT_HAS_EXPIRED的授权错误.
request({
url: 'https://www.domain.com/api/endpoint',
strictSSL: false
}, function(error, response, body) {
if(!error && response.statusCode == 200) {
res.json(JSON.parse(body));
} else {
res.json(response.statusCode, {'error': 'error'})
}
});
Run Code Online (Sandbox Code Playgroud)
我已经尝试将strictSSL设置为true和false,两者都输出相同的CERT_HAS_EXPIRED错误.导致此问题的原因是什么方法可以在nodejs中修复它?
我刚刚在其中创建了一个github帐户和一个存储库,但在尝试使用推荐URL创建本地工作副本时
git clone https://github.com/<user>/<project>.git
Run Code Online (Sandbox Code Playgroud)
我得到一个错误
致命:无法访问' https://github.com/<user>/<project>.git ':服务器证书验证失败.CAfile:/home/<user>/.ssl/trusted.pem CRLfile:none
我在Debian Jessie,我本来希望Debian和GitHub都能提供/依赖一系列普遍接受的CA,但显然我的系统不信任GibHub的证书.
任何简单的方法来解决这个问题(没有经常推荐的"GIT_SSL_NO_VERIFY = true"黑客和类似的解决办法)?
编辑:
附加信息:
删除〜/ .ssl/trusted.pem时,git错误消息将更改为
fatal: unable to access 'https://github.com/tcrass/scans2jpg.git/': Problem with the SSL CA cert (path? access rights?)
Run Code Online (Sandbox Code Playgroud)编辑:
@ VonC关于git https.sslCAinfo选项的建议让我走上正轨 - 我刚刚将下载的cacert.org CA添加到我的trusted.pem,现在git不再抱怨了.
我有一个网站,我用来托管redmine和几个git存储库
这适用于http,但我不能用https克隆,即
git clone http://mysite.com/git/test.git
Run Code Online (Sandbox Code Playgroud)
工作正常,但是
git clone https://mysite.com/git/test.git
Run Code Online (Sandbox Code Playgroud)
失败
奇怪的是,https似乎适用于我测试的其他所有内容.如果我打开
https://mysite.com/git/test.git
Run Code Online (Sandbox Code Playgroud)
在浏览器中(在chrome和firefox中测试),我没有错误或警告.我还可以
curl https://mysite.com/git/test.git
wget https://mysite.com/git/test.git
Run Code Online (Sandbox Code Playgroud)
两者都没有投诉或警告.
这是git的详细输出:
$ GIT_CURL_VERBOSE=1 git clone https://user@mysite.com/test/test.git
Cloning into test...
Password:
* Couldn't find host mysite.com in the .netrc file; using defaults
* About to connect() to mysite.com port 443 (#0)
* Trying 127.0.0.1... * Connected to mysite.com (127.0.0.1) port 443 (#0)
* found 157 certificates in /etc/ssl/certs/ca-certificates.crt
* server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
* Closing connection #0
* Couldn't …Run Code Online (Sandbox Code Playgroud) 在 Visual Studio 中,我尝试从 GitLab 上的存储库中提取一些更改,但它给了我一个错误:
Git 因致命错误而失败。
无法访问https://gitlab...git/:SSL 证书问题:证书已过期*
如何生成新证书并将其添加到 VS 中?我没有任何使用 GitLab 的经验。
我一直在使用git一段时间没有问题,然后在使用时突然开始抛出此错误git push:
错误:gnutls_handshake()失败:收到了意外长度的TLS数据包.访问...致命:HTTP请求失败
工作正常,然后突然停了下来.
问题是什么?
谢谢
我目前正在尝试使用 gstreamer-development 库来开发 gstreamer 插件,如下所示:
http://docs.gstreamer.com/display/GstSDK/Installing+the+SDK
我有一台安装了 Ubuntu 14.04 的 PC,并尝试通过以下说明安装该库:
wget -q -O - http://www.freedesktop.org/software/gstreamer-sdk/sdk.gpg | sudo apt-key add - sudo apt-get update
我收到以下错误:
Err http://www.freedesktop.org ./ Packages
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Ign http://www.freedesktop.org ./ Translation-en_US
Ign http://www.freedesktop.org ./ Translation-en
W: Failed to fetch http://www.freedesktop.org/software/gstreamer-sdk/data/packages/ubuntu/raring/amd64/./Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
为了摆脱证书错误,我搜索了它,但该线程是如此“gitlab”特定的并且没有用:
我是 Linux 新手,刚刚安装了 Lubuntu 并遇到了问题 - 当我尝试从公司的 git 克隆我的远程工作存储库时:
$ sudo git clone https://path/to/repo.git
Run Code Online (Sandbox Code Playgroud)
我不断收到错误:
Cloning into 'repo'...
fatal: unable to access 'https://path/to/repo.git/': server certificate verification failed. CAfile: none CRLfile: none
Run Code Online (Sandbox Code Playgroud)
我知道它提到了证书,但我没有。之前,我在 Windows 上工作,并且能够简单地 git 克隆这个存储库,而无需任何证书。