SSL handshake failed: SSL error: illegal key usage detected in the certificate

SVN under Linux cannot connect to the Windows server: SSL failure: SSL error: Illegal key usage detected in the certificate.
The SVN server has been configured with visualSVN on Windows 2003 and is available on the Windows virtual machine client side.
Today, however, trying to run SVN on Ubuntu 11.10 installed Subversion. But use times similar to the following error:
SVN: method OPTIONS fail in “” : the SSL handshake failed: SSL error: key usage of detected irregularities in the certificate.
Reason for error: This is because Virtual SVN USES a plug-in when generating authentication data that is supported by OpenSSL but not by GnuTls.
correction is to modify the certificate source sky generated for third-party certificates used by visualsvn on the server so that both Windows and Linux can recognize it.

1.Add the following registry value to the Windows registry :(mine is 32 bits)
for 32-bit system :(run regedit-> Find the following registry key -& GT; Add a value of type DWORD)
“CreateGnuTLSCompatibleCertificate” = dword: 00000001
for 64 – bit system:
“CreateGnuTLSCompatibleCertificate” = dword: 00000001
Start VisualSVN Server Manager. (open virsualSVN Server)
2. Go to Action | Properties | Certificate.
3.Click Change certificate…
execute SVN again, it will prompt the certificate generator to be warned that it is not trusted, choose to accept it permanently.

and that solves the problem.
Another solution (without testing) is to make SVN clients on LINUX support OPENSSL.
The methods are as follows:

wget wget tar XVFZ subversion – 1.6.3. Tar. Gz
the tar XVFZ subversion-deps-1.6.3.tar.gz
CD subversion-1.6.3/neon/

sudo apt-get install libssl-dev libxml2-dev
./configure –with-ssl –with-pic
make install

rm -rf neon
edit /etc/ and add /usr/local/lib

./configure –with-ssl –with-neon=/usr/local
make install

dpkg –purge subversion

Read More: