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 “https://1.0.0.2:8443/svn/xxx” : 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.
The
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.
Process:

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)
[HKEY_LOCAL_MACHINESOFTWAREVisualSVNVisualSVN Server]
“CreateGnuTLSCompatibleCertificate” = dword: 00000001
for 64 – bit system:
[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeVisualSVNVisualSVN Server]
“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 http://subversion.tigris.org/downloads/subversion-1.6.3.tar.gz

http://subversion.tigris.org/downloads/subversion-deps-1.6.3.tar.gz 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
make install

CD.
rm -rf neon
edit /etc/ld.so.conf and add /usr/local/lib
ldconfig

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

dpkg –purge subversion

Read More: