在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_MACHINESOFTWAREVisualSVNVisualSVN Server] "CreateGnuTLSCompatibleCertificate"=dword:00000001
-
for 64-bit system:
[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeVisualSVNVisualSVN Server] "CreateGnuTLSCompatibleCertificate"=dword:00000001
- Start VisualSVN Server Manager.(打开virsualSVN server)
- Go to Action | Properties | Certificate.
- Click Change certificate...
- 选Create new self-signed cetificate.
- 全部下一步即可。
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