打赏

星辰大海ゞ

That which does not kill us makes us stronger!

导航

linux下svn不能连接上windows服务器:SSL handshake failed: SSL error

在linux服务器下载https链接的svn源码时出现:SSL handshake failed: SSL error: Key usage violation in certificate has been detected

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

Add the following registry value to the Windows registry:(我的是64位)

  • 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
  1. Start VisualSVN Server Manager.(打开virsualSVN server)
  2. Go to Action | Properties | Certificate.
  3. Click Change certificate...
  4. 选Create new self-signed cetificate.
  5. 全部下一步即可。

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

# svn checkout https://192.168.55.10/svn/ztyq/codes/biz/trunk/biz-web

(R)eject, accept (t)emporarily or accept (p)ermanently? p

 

posted on 2018-02-07 10:48  星辰大海ゞ  阅读(719)  评论(0编辑  收藏  举报