On Ubuntu12.04, after installing SVN on the Subversion official website, the following error may occur when connecting to the svn address: OPTIONSof '& lt; url & gt;': SSLhandshakefailed: SSLerror: failed. (& lt; url & gt ;)
On Ubuntu 12.04, after installing SVN on the official website of Subversion, the following error may occur when you connect to the svn address:
OPTIONS' ': SSL handshake failed: SSL error: Key usage violation in certificate has been detected .( )
The root cause of this problem is that the link of the Ubuntu package libneon-gnutls is more strict than libneon in processing the certificate. As a result, the verification fails and the above error message is displayed. The simplest way is to direct the libneon-gnutls link to libneon. The corresponding command is:
- 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
sudo mv /usr/lib/libneon-gnutls.so.27 /usr/lib/libneon-gnutls.so.27.oldsudo ln -s /usr/lib/libneon.so.27 /usr/lib/libneon-gnutls.so.27
However, in Ubuntu12.04, another error occurs:
OPTIONS ': SSL handshake failed: SSL disabled due to library version mismatch ( )
This is because of the bug between Ubuntu12.04 and libneon.
The specific solution is as follows:
- Uninstall the libneon package
sudo apt-get remove libneon27
- Install the required libssl dependency.
sudo apt-get install libssl0.9.8
- There is the latest libneon package at the bottom of the page for the http://packages.debian.org/squeeze/libneon27, download the corresponding installation package for the system, and then run the command to install.
dpkg -i libneon27_0.29.3-3_amd64.deb
- Finally, change the link. The command is as follows:
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
- After logging out of the user, it will be OK.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2