linux上svn连接visual svn server时ssl鉴权失败,问题解决
来源:互联网 发布:java开源仓库管理系统 编辑:程序博客网 时间:2024/05/18 00:28
场景:1、在windows 7上安装了visual svn server作为自己的svn服务器。
2、在虚拟机centos 6.3上使用svn客户端check代码,报错:
- #svn checkout https://192.168.0.104:8443/svn/DblList
- svn: OPTIONS of 'https://192.168.0.104:8443/svn/DblList': SSL handshake failed: SSL error: Key usage violation in certificate has been detected. (https://192.168.0.104:8443)
解决:在网上找到一篇文章,按照它介绍的方法操作,解决问题。明白了,这是因为virtual svn在生成鉴权数据的时候使用了一个插件,而这个插件是OpenSSL支持的,但GnuTls是不支持的。详细的内容大家仔细看吧。感谢这篇文章的原作者,及散播者。
Symptoms
Subversion clients receive the following error message when attempting to connect to VisualSVN Server:
Key usage violation in certificate has been detected. (https://server.domain.local)
You may experience the issue if both of the following conditions are met:
- VisualSVN Server has a self-signed certificate applied and
- Subversion client is built against the GnuTLS library.
Technical background
During the initial setup VisualSVN Server 2.5 generates a self-signed certificate and adds it to the Trusted Root Certification Authorities store on the local machine. To avoid possible security issues, VisualSVN Server makes this self-signed certificate to be valid for server authentication only (by specifying the 'Key Usage' extension). Subversion clients built against GnuTLS don't recognize such certificate and the error occurs.
Workaround
It's not recommended to use a self-signed certificate in a production environment. We advise to use a certificate issued by your domain or a third-party certificate authority instead of a self-signed one.
If you have to use a self-signed certificate please follow the instruction to generate a cerificate without specifying 'Key Usage' extension:
- Add the following registry value to the Windows registry:
for 32-bit system:
[HKEY_LOCAL_MACHINE\SOFTWARE\VisualSVN\VisualSVN Server] "CreateGnuTLSCompatibleCe
rtificate"=dword:00000001 for 64-bit system:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VisualSVN\VisualSVN Server] "CreateGnuTLSCompatibleCe
rtificate"=dword:00000001
- Start
VisualSVN Server Manager. - Go to
Action | Properties | Certificate. - Click
Change certificate... and follow the wizard instructions to generate a new self-signed certificate.
The certificate will be generated without the 'Key Usage' extension and will be compatible both with GnuTLS and OpenSSL.
- linux上svn连接visual svn server时ssl鉴权失败,问题解决
- linux上svn连接visual svn server时ssl鉴权失败,问题解决
- linux上svn连接visual svn server时ssl鉴权失败,问题解决 SSL handshake failed: SSL error: Key usage violation in ce
- visual svn server安装失败
- svn连接linux svn 服务器失败解决
- 使用Visual SVN 2.5以上版本,ubuntu客户端连接失败的问题解决方法
- linux下svn不能连接上windows服务器:SSL handshake failed: SSL
- Visual SVN Server启动失败0x8007042a错误
- Visual SVN Server启动失败0x8007042a错误
- Visual SVN Server启动失败0x8007042a错误
- Visual SVN Server搭建
- SVN连接服务器失败
- svn远程连接失败
- svn 服务连接失败
- linux虚拟机上svn客户端连接问题
- SVN Server 搭建:Svn Authorization Failed问题解决
- 记录问题,linux 上svn checkout 失败 Can’t move ‘.svn/tmp/entries’ to ‘.svn/entries’
- SVN服务器搭建(Visual SVN server)
- BlockRead和BlockWrite读写文件
- 关于局部变量、全局变量、形式变量和实参变量
- 64位系统下C#解压缩文件
- 在Mac下,快速搭建针对WP8应用的PhoneGap开发环境
- windows server 2012 r2 rtm 激活成功
- linux上svn连接visual svn server时ssl鉴权失败,问题解决
- pppoe脚本示例
- 【最多约数问题】
- 周记,2013.11.1
- Delphi XE 检查内存泄露
- 博客--start
- LeetCode题解:Remove Duplicates from Sorted List II
- 谷歌浏览器Chrome缓存路径
- LeetCode题解:Simplify Path