最近遇到了一个恼火的问题,在Ubuntu上尝试用svn命令checkout一个https的repository时遇到个错误信息:
svn: E175002: Unable to connect to a repository at URL 'https://domain/svn'
svn: E175002: OPTIONS of 'https://domain/svn': SSL handshake failed: SSL error: Key usage violation in certificate has been detected. (https://domain)
Solution:
安装libneon库:
sudo apt-get install libneon27
替换link:
sudo mv /usr/lib/libneon-gnutls.so.27 /usr/lib/libneon-gnutls.so.27.old
sudo ln -s /usr/lib/libneon.so.27 /usr/lib/libneon-gnutls.so.27