解决svn一直报Error validating server certificate for https://XXXX fingerprint

来源:互联网 发布:vr眼镜评测 知乎 编辑:程序博客网 时间:2024/06/04 20:08

起因:

由于svn服务端证书的问题,svn在认证时会报以下一个错误:
Error validating server certificate for ‘https://xxxxxxx‘:
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
- The certificate hostname does not match.
Certificate information:
XXXX

即使你点击”永久接受”,下次使用svn还是会弹那个框,很是麻烦,这个对天天要使用svn N次的开发人员怎么可能授受得了。既然是https证书问题,我尝试在svnsetting->Saved data->Authentication data 右边的clear,然后再登录,重新输入一次账号和密码,发现可以正常使用一会。但没过几天又会报那个错。

解决方法:

后面想到是不是要把整个ssl证书认证的文件全部删除:
windows系统 svn的https的证书认证信息保存在:
X(系统盘):\Users\#your usrname#\AppData\Roaming\Subversion\auth\svn.ssl.server
把这个svn.ssl.server文件夹直接删除,然后使用svn,再弹出的那个框时,选择第一个“永久授受”。
接下来一切清静了。。。

后记:

后面也碰到了一些因为版本太低导致这个提醒的情况,如果版本是1.6.X版本的,也会一直报这个错,
即使按照上面的做法,过几天还是会弹。所以这个时候需要大家升级svn的版本到最新版本(1.8.X或更新).
但升级后会有一个问题,会导致你的svn不能操作,因为版本差别太大。这个时候要在svn的root directory
用command line运行:
svn upgrade
即可。

2 0
原创粉丝点击