Svn "key usage violation in certificate"

I just ran into a weird problem when doing a svn checkout against a VirtualSVN server that was configured with a sefl-signed certificate. Subversion crashed with the following error message:

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

I had no real idea what was going on, maybe again an error because of untrusted self signed certificates – although I never had problems with that before. I thought that would take a while now until I could begin working… Fortunately, I quickly found this blog post which explains the error and presents an easy fix: Use libneon instead of libneon-gnutls. Actually, there are three possiblities around this nastiness:

  1. "Re-Symlink" the libneo-gnutls lib in /usr/lib to libneon.x.so
  2. prefix the commands with LD_PRELOAD=/usr/lib/libneon.so.x
  3. Use another subversion client that doesn't use libneon, like for example the subversion client in IntelliJ IDEA.

The background to this problem is also described at the virtual-svn homepage.

Date: [2013-11-29 Fr]

Created: 2015-12-08 Di 23:21

Validate