Jus*_*tas 5 ssl git eclipse gitlab apache-2.4
当我使用时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 操作而不禁用验证?
使用https://www.sslshopper.com/ssl-checker.html检查 SSL ,它显示一些警告,而浏览器没有抱怨该 URL。SSLCertificateChainFile /etc/apache2/ssl/1_root_bundle.crt
它在 中丢失了/etc/apache2/sites-available/default-ssl.conf。
| 归档时间: |
|
| 查看次数: |
20764 次 |
| 最近记录: |