您的位置:首页 > 运维架构 > Linux

linux svn SSL handshake failed: SSL error

2016-06-29 16:48 435 查看
参考:http://blog.csdn.net/duguteng/article/details/7726536
http://www.visualsvn.com/support/topic/00056/
错误现象:

[root@test1 svnword]# svn checkout https://192.168.x.xxx/svn/project1
svn: OPTIONS of 'https://192.168.x.xxx/svn/project1': SSL handshake failed: SSL 

错误原因:是windows使用的证书linux不能识别。

改正方法:修改服务器上visualsvn使用的证书为第三方产生的证书,以便windows和linux都能识别。

改正过程

Add the following registry value to the Windows registry:

for 32-bit system:(运行regedit->找到下面的注册表项->增加一个dword类型的值)
[HKEY_LOCAL_MACHINE\SOFTWARE\VisualSVN\VisualSVN Server]
"CreateGnuTLSCompatibleCertificate"=dword:00000001


for 64-bit system:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VisualSVN\VisualSVN Server]
"CreateGnuTLSCompatibleCertificate"=dword:00000001


Start VisualSVN Server Manager.(打开virsualSVN server)
Go to Action | Properties | Certificate.
Click Change certificate... and follow the wizard instructions to generate a new self-signed certificate.

再次执行svn,会提示证书生成者不受信赖的警告,选择永久接受即可。

如果还是不行的话,就改变一下登陆的方式,勾选https,再勾选http。然后登陆,就可以解决问题了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: