Ubuntu12.04 SSLhandshakefailed during svn Installation

Source: Internet
Author: User
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:

  1. Sudo mv/usr/lib/libneon-gnutls.so.27/usr/lib/libneon-gnutls.so.27.old.
  2. 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:

  1. Uninstall the libneon package
    sudo apt-get remove libneon27
  2. Install the required libssl dependency.
    sudo apt-get install libssl0.9.8
  3. 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
  4. 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
  5. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.