Linux · 2012-04-23

解决svn错误:’SSL handshake failed: SSL error: Key usage violation in certificate has been detected.’

12.04前:

sudo apt-get install libneon27-dev

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

 

12.04:

 

  1. Uninstall the current libneon package:
    sudo apt-get remove libneon27>
  2. Download the latest libneon package fromhttp://packages.debian.org/squeeze/libneon27  (at the bottom you can choose the right version for your architecture).
    1. 32位下载:http://ftp.cn.debian.org/debian/pool/main/n/neon27/libneon27_0.29.3-3_i386.deb
    2. 64位下载:http://ftp.cn.debian.org/debian/pool/main/n/neon27/libneon27_0.29.3-3_amd64.deb
  3. Install the required libssl dependency:
    sudo apt-get install libssl0.9.8
  4. Install the downloaded libneon package. E.g. for the 64Bit architecture:
    dpkg -i libneon27_0.29.3-3_amd64.deb 或 libneon27_0.29.3-3_i386.deb
  5. Change the symbolic links again like described above:
    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