【问题标题】:Why does the OpenSSL repository use the git protocol?为什么 OpenSSL 存储库使用 git 协议?
【发布时间】:2020-04-22 20:42:17
【问题描述】:

OpenSSL/gitrepo,他们指定 OpenSSL 存储库仅支持 git 协议(与 GitHub 克隆不同),但是,git 协议 supports no server authentication

是否可以保证我从正确的服务器进行克隆? (除了可能检查https://www.openssl.org)。我希望安全库在任何地方都使用安全方法。

【问题讨论】:

  • git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols 表示 Git 协议不适合开发人员,因为它们无法通过身份验证,但对于只读访问来说是可以的,这意味着显然存在某种形式的服务器身份验证和数据完整性安全原因。那么,谁是对的?

标签: git security openssl


【解决方案1】:

您也可以克隆 GitHub 镜像仓库 github.com/openssl/openssl(支持 SSH/HTTPS 协议)

然后您可以将 git://git.openssl.org/openssl.git 添加为上游仓库

cd /path/to/clone/repo
git remote add upstream git://git.openssl.org/openssl.git
git fetch upstream

然后您可以比较 masterupstream/master 以检查它们是否匹配。

【讨论】:

    猜你喜欢
    • 2013-03-25
    • 2016-06-29
    • 2017-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-29
    • 2012-12-15
    • 2013-10-18
    相关资源
    最近更新 更多