svn/git Error validating server

2017-02-23  本文已影响494人  生光

一. 由于公司HTTPS证书不安全,导致svn报错:

Error validating server certificate for 'https://...':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: ...
 - Valid: from Wed, 01 Sep 2010 08:25:36 GMT until Thu, 06 Oct 2011 08:25:36 GMT
 - Issuer: ...
 - Fingerprint: ...

解决办法,手动验证通过。

运行 svn list https://your-svn-url
确认是否接受是选择accept或者permanently

二. 使用git的情况下
报错

error: SSL certificate problem: Invalid certificate chain while accessing
    https://githib.com/...git/info/refs?service=git-receive-pack
fatal: HTTP request failed

解决方法

git config --global http.sslVerify false

详细参考git SSL certificate- Invalid certificate chain while accessing

上一篇 下一篇

猜你喜欢

热点阅读