我刚刚为windows安装了git并试图像这样克隆glew的repo
$ git clone https://github.com/nigels-com/glew.git
Run Code Online (Sandbox Code Playgroud)
但是我得到了以下错误
Cloning into 'glew'...
fatal: unable to access 'https://github.com/nigels-com/glew.git/': SSL certificate problem: self signed certificate
Run Code Online (Sandbox Code Playgroud)
我见过人们遇到这个问题和一些可能的解决方法.
第一次尝试
$ git -c http.sslVerify=false clone https://github.com/nigels-com/glew.git
Cloning into 'glew'...
fatal: unable to access 'https://github.com/nigels-com/glew.git/': Empty reply from server
Run Code Online (Sandbox Code Playgroud)
第二次尝试
$ git config --global http.sslVerify false
$ git clone https://github.com/nigels-com/glew.git
Cloning into 'glew'...
fatal: unable to access 'https://github.com/nigels-com/glew.git/': Empty reply from server
Run Code Online (Sandbox Code Playgroud)
然后我检查http.sslcainfo了配置文件中的条目
$ git config --system --list
credential.helper=manager
$ git config --global --list
https.proxy=<proxy-address>
http.sslverify=false
Run Code Online (Sandbox Code Playgroud)
系统和全局配置文件没有该条目.所以我尝试了以下内容,我不知道正在阅读什么文件并尝试取消设置. …
我在哪里可以在IntelliJ Idea中配置GIT的代理设置?我已经为插件设置了代理设置,但我无法为GIT找到它; 和帮助文件只提到subversion.
任何帮助表示赞赏.
我最近升级了我的 Inteliij IDEA 2019.2,如果我尝试从我的 IDE 中拉出 Git Pull 失败:无法访问 ' https://github.xxx.com/app-Hello-USD/DGS.git,我会遇到以下错误/ ': SSL 证书问题:证书链中的自签名证书。
有人可以帮助我我必须启用什么选项。
谢谢
我在Linux Mint机器上使用OpenSSL生成SSL证书(key.pem,cacert.pem,pcert.pem).现在,我正在尝试将我的应用程序移动到另一台安装Fedora 18和NSS的服务器上.
cURL返回此错误:
unable to load client key: -8178 (SEC_ERROR_BAD_KEY)
Run Code Online (Sandbox Code Playgroud)
我再次测试,在我的电脑上工作正常,但在服务器上没有.我认为这是因为我使用OpenSSL生成证书,但在服务器上安装了NSS.
我找不到如何生成带有"certutil"或"openssl"的证书对NSS有效.
我注意到Windows 7以下线程的修复,但是我在Windows 10上看到了该修复,我的工作中出现了多个框,而其他人在gitkraken松弛通道上报告了该问题。
有人在Windows 10上解决了这个问题吗?
Windows 7线程链接: GitKraken和Github-无法获取服务器证书:所请求操作的句柄处于错误状态
我们有一个GnuTLS不喜欢的内部服务器,例如:
gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt foo.example.com
Processed 173 CA certificate(s).
Resolving 'foo.example.com'...
Connecting to '1.2.3.4:443'...
*** Verifying server certificate failed...
*** Fatal error: Error in the certificate.
*** Handshake has failed
GnuTLS error: Error in the certificate.
Run Code Online (Sandbox Code Playgroud)
GnuTLS以外的所有内容都可以正常使用,但是git似乎在Ubuntu 14.04.2 LTS上使用GnuTLS开箱即用,所以git失败了:
GIT_CURL_VERBOSE=1 git clone https://foo.example.com/some-repo.git
Cloning into 'some-repo'...
* Couldn't find host foo.example.com in the .netrc file; using defaults
* Hostname was NOT found in DNS cache
* Trying 1.2.3.4...
* Connected to foo.example.com (1.2.3.4) port 443 (#0)
* found 173 certificates …Run Code Online (Sandbox Code Playgroud) 我正在尝试将 composer 与我的WampServer一起使用。
我所有文件的路径是C:\wamp64\www,但是当我运行 composer 时,它会在其他地方安装供应商文件和其他东西。
我什至不知道在哪里,也无法更改我的项目所在的路径。我已经尝试了一切,但它似乎仍然没有在我的项目文件夹中安装供应商文件。
我正在尝试使用默认的git后端设置Spring Cloud Config Server.我已经设置了一个本地gitlab并将配置文件放入本地gitlab.但是当我启动配置服务器时,抛出以下异常,我哪里出错了?是否有任何方法可以JGitEnvironmentRepository默认配置不验证SSL?
org.eclipse.jgit.api.errors.RefNotFoundException: Ref master can not be resolved
at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:244)
at org.springframework.cloud.config.server.JGitEnvironmentRepository.checkout(JGitEnvironmentRepository.java:208)
at org.springframework.cloud.config.server.JGitEnvironmentRepository.loadEnvironment(JGitEnvironmentRepository.java:179)
at org.springframework.cloud.config.server.JGitEnvironmentRepository.findOne(JGitEnvironmentRepository.java:155)
at org.springframework.cloud.config.server.EnvironmentController.labelled(EnvironmentController.java:55)
at org.springframework.cloud.config.server.EnvironmentController.master(EnvironmentController.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:777)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:706)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:288)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at …Run Code Online (Sandbox Code Playgroud) 如何使用 GitPython 库在禁用 SSL 检查的情况下进行克隆。下面的代码...
import git
x = git.Repo.clone_from('https://xxx', '/home/xxx/lala')
Run Code Online (Sandbox Code Playgroud)
...产生此错误:
Error: fatal: unable to access 'xxx': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Run Code Online (Sandbox Code Playgroud)
我知道“export GIT_SSL_NO_VERIFY=1”,但是如何在 python 库中实现它?
我刚刚开始使用 Android Studio(适用于 Windows 7 的 v1.5.1),我希望能够通过 HTTPS 使用 BitBucket(我安装了 Git v2.7.1.0)。我已按照有关如何从此处进行设置的说明进行操作,这一切看起来都非常简单。
但是,在将我的项目推送到 BitBucket 时,它总是失败并显示“推送失败”错误,最新的错误是
致命的:无法访问“https:// USERNAME @bitbucket.org/ USERNAME / MYPROJECT .git/”: SSL 证书问题:证书链中的自签名证书
自签名证书 (selfcert.cer) 是在 BitBucket 网站上从我的浏览器创建的,我在某处阅读了我必须做的事情。
这对我来说是全新的,所以我不确定接下来要尝试什么。
目前,我收到此错误:
$ git clone https://github.com/square/haha.git
Cloning into 'haha'...
fatal: unable to access 'https://github.com/square/haha.git/': SSL certificate problem: self signed certificate in certificate chain
Run Code Online (Sandbox Code Playgroud)
我在Windows 7机器上.我了解到Github的证书是由DigiCert签署的.如果我查看" 受信任的根证书颁发机构">"证书",我会看到颁发给DigiCert的证书:
DigiCert Assured ID Root CA
DigiCert Assured ID Root G2
DigiCert Assured ID Root G3
DigiCert Global Root CA
DigiCert Global Root G2
DigiCert Global Root G3
DigiCert High Assurance EV Root CA
DigiCert Trusted Root G4
Run Code Online (Sandbox Code Playgroud)
GitHub证书是否包含在其中一个中?如果是这样,我该如何使用它?如果不是我如何得到它?
编辑 - 更多信息:
我可以将sslVerify设置为false并且它可以工作,但这当然不安全.
我可以使用git://而不是https://.这也有效,但不是https.
我不能使用SSH,因为此环境没有设置代理.使用ssh:
$ git clone ssh://github.com/square/haha.git
Cloning into 'haha'...
D:/Program Files/Git/usr/bin/bash: -c: …Run Code Online (Sandbox Code Playgroud) git ×6
github ×4
ssl ×3
curl ×2
openssl ×2
bitbucket ×1
certificate ×1
composer-php ×1
gitkraken ×1
gitpython ×1
gnutls ×1
java ×1
nss ×1
proxy ×1
spring-cloud ×1
ubuntu ×1
wampserver ×1