当前位置:   article > 正文

服务器证书验证失败。 CAfile:/etc/ssl/certs/ca-certificates.crt CRLfile:无

服务器证书验证失败。 CAfile:/etc/ssl/certs/ca-certificates.crt CRLfile:无

本文翻译自:server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

I can push by clone project using ssh, but it doesn't work when I clone project with https. 我可以使用ssh推送克隆项目,但是当我使用https克隆项目时,它不起作用。

The error message that shows me is: 显示我的错误消息是:

server certificate verification failed. CAfile: /etc/ssl/certs/cacertificates.crt CRLfile: none

#1楼

参考:https://stackoom.com/question/1qScL/服务器证书验证失败-CAfile-etc-ssl-certs-ca-certificates-crt-CRLfile-无


#2楼

TLDR: TLDR:

  1. hostname=XXX
  2. port=443
  3. trust_cert_file_location=`curl-config --ca`
  4. sudo bash -c "echo -n | openssl s_client -showcerts -connect $hostname:$port \
  5. 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' \
  6. >> $trust_cert_file_location"

Long answer 长答案

The basic reason is that your computer doesn't trust the certificate authority that signed the certificate used on the Gitlab server . 根本原因是您的计算机不信任对Gitlab服务器上使用证书进行签名的证书颁发机构 This doesn't mean the certificate is suspicious, but it could be self-signed or signed by an institution/company that isn't in the list of your OS's list of CAs. 这并不意味着证书可疑,但是它可以是自签名的,也可以由不在您的操作系统的CA列表中的机构/公司签名。 What you have to do to circumvent the problem on your comput

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/704596
推荐阅读
相关标签
  

闽ICP备14008679号