CentOS下連VisualSVN伺服器時報SSL handshake failed: SSL error: Key usage violation in certificate has been d
阿新 • • 發佈:2018-12-11
CentOS/RHEL yum 預設安裝的 subversion 是 1.6.11 版本,連VisualSVN伺服器時或變更svn地址定位時會有"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
好了,現在試試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/
問題解決。
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=
enabled=1
gpgcheck=0
2、yum刪除舊的包
yum remove subversion*
3.安裝新的包
yum clean all
yum -y install subversion
SVN地址變更:
svn up #先更新本地
https://www.yiwindow.com/svn/hynhyh 變更為https://svn.weixinyiwindow.com/svn/hynhyh
svn sw --relocate https://www.yiwindow.com/svn/hynhyh https://svn.weixinyiwindow.com/svn/hynhyh
好了,現在試試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/
問題解決。