当我使用时git clone https://my.example.com/gitlab/java/repository.git
,我得到
克隆到“存储库”...
致命:无法访问“ https://my.example.com/gitlab/java/repository.git”:SSL证书问题:
无法获取本地颁发者证书
如果我设置的话效果很好git config --global http.sslVerify false
Gitlab 与 Apache2 和 SSL 一起使用,转发到 gitlab-workhorse。有关配置的更多详细信息:用于存储库克隆的 Gitlab HTTPS URI 不起作用 - SSL 主机无法验证 - 致命:无法访问
我尝试添加 SSL 证书,因为它们与 Apache 配置中的相同,但没有帮助:
nginx['ssl_certificate'] =“/etc/gitlab/ssl/my.example.com.crt”
nginx['ssl_certificate_key'] =“/etc/gitlab/ssl/my.example.com.key”
如何配置它以通过 HTTPS 进行 git 操作而不禁用验证?
我使用 14.04.1-Ubuntu。date
在命令行中执行时,我得到的时间与格林威治标准时间或其他来源相比大约有 1 分钟的差异。sudo ntpdate -s time.nist.gov
几个月前我用它同步了它,但它又跳了。为什么会发生?如何在 Ubuntu 上持续保持准确的时间?