markdown 使用自签名证书在git存储库中禁用SSL验证

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 使用自签名证书在git存储库中禁用SSL验证相关的知识,希望对你有一定的参考价值。

Sometimes, we have to access git repositories over SSL and the server only provides a self-signed certificate . Although there are ways to increase the trust level for the self-signed certificate (https://confluence.atlassian.com/fishkb/unable-to-clone-git-repository-due-to-self-signed-certificate-376838977.html, https://confluence.atlassian.com/bitbucketserverkb/resolving-ssl-self-signed-certificate-errors-806029899.html), my recommendation is to just ignore SSL verification alltogether.

Prepend `GIT_SSL_NO_VERIFY=true` before every git command run to skip SSL verification. This is particularly useful if you haven't checked out the repository yet.

Run `git config http.sslVerify false` to disable SSL verification if you're working with a checked out repository already.

以上是关于markdown 使用自签名证书在git存储库中禁用SSL验证的主要内容,如果未能解决你的问题,请参考以下文章

markdown 创建自签名证书

markdown 如何生成SSL CSR或自签名SSL证书

在项目目录中存储匹配证书

markdown git Untrack文件已经基于.gitignore添加到git存储库中

在 Windows 7 上信任 Java 7 的自签名证书

将 Git 配置为接受特定 https 远程的特定自签名服务器证书