ubuntu svn下载代码出错

时间:2021-08-31 16:31:20

ubuntu svn下载代码出错:

svn: OPTIONS of 'https://server.domain.local/svn/repo': SSL handshake failed: SSL error:
Key usage violation in certificate has been detected. (https://server.domain.local)

原因是因为代码服务器装的visualSVN用的认证方式是openssl的,ubuntu svn默认的是用gnu tls认证。

解决方法:

sudo apt-get install libneon27-dev

cd /usr/lib
sudo mv libneon-gnutls.so.27 libneon-gnutls.so.27.old
sudo ln -s libneon.so.27.2.6 libneon-gnutls.so.27

(需要根据自己系统的实际情况修改)

lrwxrwxrwx 1 root root     26 Feb 11 13:14 /usr/lib/libneon-gnutls.so.27 -> /usr/lib/libneon.so.27.2.6
-rw-r--r-- 1 root root 159360 Mar  4  2013 /usr/lib/libneon-gnutls.so.27.2.6
-rw-r--r-- 1 root root 159360 Feb 11 13:12 /usr/lib/libneon-gnutls.so.27.2.6.bak
lrwxrwxrwx 1 root root     28 Feb 11 13:12 /usr/lib/libneon-gnutls.so.27.old -> libneon-gnutls.so.27.2.6.bak
lrwxrwxrwx 1 root root     17 Mar  4  2013 /usr/lib/libneon.so.27 -> libneon.so.27.2.6
-rw-r--r-- 1 root root 163672 Mar  4  2013 /usr/lib/libneon.so.27.2.6