CentOS/RHEL yum 安装的 subversion 是 1.6.11 版本,连VisualSVN服务器时会有"Key usage violation"的错误,如下
svn: OPTIONS of ' https://.../server': SSL handshake failed: SSL error: Key usage violation in certificate has been detected. ( https://... )
网上查到,将subversion升级到最新版可解决该问题:
Install Subversion 1.8.9 ( SVN Client ) on CentOS/RHEL
Thanks to Wandisco, which is maintaining the rpm packages for latest Subversion version.
( http://tecadmin.net/install-subversion-1-8-on-centos-rhel/ )
按指示设置新的yum源,然后安装:
1.添加源
vim /etc/yum.repos.d/wandisco-svn.repo
[WandiscoSVN]
name=Wandisco SVN Repo
baseurl= http://opensource.wandisco.com/centos/$releasever/svn-1.8/RPMS/$basearch/
enabled=1
gpgcheck=0
2、yum删除旧的包
yum remove subversion*
3.安装新的包
yum clean all
yum install subversion
好了,现在试试SVN的版本
svn --version
svn, version 1.8.15 (r1718365)
compiled Dec 11 2015, 14:28:48 on x86_64-redhat-linux-gnu
Copyright (C) 2015 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- using serf 1.3.7
- handles 'http' scheme
- handles 'https' scheme
问题解决。
svn: OPTIONS of ' https://.../server': SSL handshake failed: SSL error: Key usage violation in certificate has been detected. ( https://... )
网上查到,将subversion升级到最新版可解决该问题:
Install Subversion 1.8.9 ( SVN Client ) on CentOS/RHEL
Thanks to Wandisco, which is maintaining the rpm packages for latest Subversion version.
( http://tecadmin.net/install-subversion-1-8-on-centos-rhel/ )
按指示设置新的yum源,然后安装:
1.添加源
vim /etc/yum.repos.d/wandisco-svn.repo
[WandiscoSVN]
name=Wandisco SVN Repo
baseurl= http://opensource.wandisco.com/centos/$releasever/svn-1.8/RPMS/$basearch/
enabled=1
gpgcheck=0
2、yum删除旧的包
yum remove subversion*
3.安装新的包
yum clean all
yum install subversion
好了,现在试试SVN的版本
svn --version
svn, version 1.8.15 (r1718365)
compiled Dec 11 2015, 14:28:48 on x86_64-redhat-linux-gnu
Copyright (C) 2015 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- using serf 1.3.7
- handles 'http' scheme
- handles 'https' scheme
问题解决。