CentOS上svn checkout时报错SSL handshake failed: SSL error: Key usage violation in certificate has been det

局域网安装了个SVN在checkout的时候报错 
SSL handshake failed: SSL error: Key usage violation in certificate has been detected.

解决方法(亲测):
1.如果你没安装wget先安装wget. 
yum install rpm-build wget 


2.wget ftp://ftp.icm.edu.pl/vol/rzm2/linux-fedora-secondary/releases/15/Everything/source/SRPMS/neon-0.29.5-2.fc15.src.rpm 


3.rpm -i neon-0.29.5-2.fc15.src.rpm 
   在执行这句的时候可能有警告,不要管。 


4.cd /root/rpmbuild 


5.vi SPECS/neon.spec 
找到43行:'--with-ssl=gnutls部分,修改为:--with-ssl(也就是去掉=gnutls)。 


6.yum install gcc make expat-devel gnutls-devel zlib-devel krb5-devel libproxy-devel pakchois-devel openssl-devel 

 

7.如果没有rpmbuild安装一下

   yum install rpm-build -y


8.cd /root/rpmbuild/SPECS

   rpmbuild -ba neon.spec 


9.cd /root/rpmbuild/RPMS/i386(根据系统架构可能会不同)/ 

10.rpm -Uvh neon-* 

posted @ 2014-08-20 09:54  smallcoderhujin  阅读(1992)  评论(0编辑  收藏  举报