{"id":4347,"date":"2015-05-25T10:37:59","date_gmt":"2015-05-25T02:37:59","guid":{"rendered":"https:\/\/www.hmouse.tk\/?p=4347"},"modified":"2015-05-25T10:37:59","modified_gmt":"2015-05-25T02:37:59","slug":"centos-%e8%ae%bf%e9%97%aehttps-svn%e6%8a%a5%e9%94%99","status":"publish","type":"post","link":"https:\/\/www.hmouse.cn\/?p=4347","title":{"rendered":"centos \u8bbf\u95eehttps svn\u62a5\u9519"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>\u53c2\u8003url\uff1a<a title=\"http:\/\/kuring.me\/post\/centos6.5_svn?action=show_raw\" href=\"http:\/\/kuring.me\/post\/centos6.5_svn?action=show_raw\">http:\/\/kuring.me\/post\/centos6.5_svn?action=show_raw<\/a><\/p>\n<p>\u62a5\u9519\u7684\u4fe1\u606f\uff1asvn: OPTIONS of &#8216;<a href=\"https:\/\/ablejavaserver\/svn\/myuni-home\/trunk\/myuni-home-core':\">https:\/\/ablejavaserver\/svn\/myuni-home\/trunk\/myuni-home-core&#8217;:<\/a> SSL handshake failed: SSL error: Key usage violation in certificate has been detected. (https:\/\/ablejavaserver)<\/p>\n<p>\u5728\u7528CentOS\u9ed8\u8ba4\u7684svn\u5ba2\u6237\u7aef\u5de5\u5177\u8bbf\u95eeWindows\u4e0b\u642d\u5efa\u7684subversion\u65f6\u4f1a\u63d0\u793a\u5982\u4e0b\u9519\u8bef\uff1a  <\/p>\n<p>&#8220;`<br \/>[kuring@localhost \u684c\u9762]$ svn checkout <a href=\"https:\/\/192.168.100.100\/svn\/test\">https:\/\/192.168.100.100\/svn\/test<\/a><br \/>svn: \u65b9\u6cd5 OPTIONS \u5931\u8d25\u4e8e \u201c<a href=\"https:\/\/192.168.100.100\/svn\/test:\">https:\/\/192.168.100.100\/svn\/test:<\/a> SSL handshake failed: SSL \u9519\u8bef\uff1aKey usage violation in certificate has been detected. (<a href=\"https:\/\/192.168.100.100)\">https:\/\/192.168.100.100)<\/a><br \/>&#8220;`  <\/p>\n<p>\u901a\u8fc7\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u53ef\u4ee5\u770b\u5230svn\u662f\u652f\u6301https\u534f\u8bae\u7684\uff1a  <\/p>\n<p>&#8220;`<br \/>[kuring@localhost ~]$ svn &#8211;version<br \/>svn\uff0c\u7248\u672c 1.6.11 (r934486)<br \/>&nbsp;&nbsp; \u7f16\u8bd1\u4e8e Apr 11 2013\uff0c16:13:51  <\/p>\n<p>\u7248\u6743\u6240\u6709 (C) 2000-2009 CollabNet\u3002<br \/>Subversion \u662f\u5f00\u653e\u6e90\u4ee3\u7801\u8f6f\u4ef6\uff0c\u8bf7\u53c2\u9605 <a href=\"http:\/\/subversion.tigris.org\/\">http:\/\/subversion.tigris.org\/<\/a> \u7ad9\u70b9\u3002<br \/>\u6b64\u4ea7\u54c1\u5305\u542b\u7531 CollabNet(<a href=\"http:\/\/www.Collab.Net\/)\">http:\/\/www.Collab.Net\/)<\/a> \u5f00\u53d1\u7684\u8f6f\u4ef6\u3002  <\/p>\n<p>\u53ef\u4f7f\u7528\u4ee5\u4e0b\u7684\u7248\u672c\u5e93\u8bbf\u95ee\u6a21\u5757:  <\/p>\n<p>* ra_neon : \u901a\u8fc7 WebDAV \u534f\u8bae\u4f7f\u7528 neon \u8bbf\u95ee\u7248\u672c\u5e93\u7684\u6a21\u5757\u3002<br \/>&nbsp; &#8211; \u5904\u7406\u201chttp\u201d\u65b9\u6848<br \/>&nbsp; &#8211; \u5904\u7406\u201chttps\u201d\u65b9\u6848<br \/>* ra_svn : \u4f7f\u7528 svn \u7f51\u7edc\u534f\u8bae\u8bbf\u95ee\u7248\u672c\u5e93\u7684\u6a21\u5757\u3002&nbsp; &#8211; \u4f7f\u7528 Cyrus SASL \u8ba4\u8bc1<br \/>&nbsp; &#8211; \u5904\u7406\u201csvn\u201d\u65b9\u6848<br \/>* ra_local : \u8bbf\u95ee\u672c\u5730\u78c1\u76d8\u7684\u7248\u672c\u5e93\u6a21\u5757\u3002<br \/>&nbsp; &#8211; \u5904\u7406\u201cfile\u201d\u65b9\u6848<br \/>&#8220;`  <\/p>\n<p>\u8fd9\u662f\u7531\u4e8esvn\u5ba2\u6237\u7aef\u5728https\u534f\u8bae\u4e2d\u4f7f\u7528\u4e86GnuTLS\u5e93\u9020\u6210\u7684\uff0c\u5c06\u5176\u66f4\u6539\u4e3a\u4f7f\u7528openssl\u5e93\u5373\u53ef\u3002\u901a\u8fc7\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u53ef\u4ee5\u67e5\u770bsvn\u4f7f\u7528\u7684\u5e93\uff1a  <\/p>\n<p>&#8220;`<br \/>[kuring@localhost bin]$ ldd svn | grep ssl<br \/>[kuring@localhost bin]$ ldd svn | grep tls<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgnutls.so.26 =&gt; \/usr\/lib64\/libgnutls.so.26 (0x00007f33004ad000)<br \/>&#8220;`  <\/p>\n<p>&#8212;&#8212;-  <\/p>\n<p>\u4e0b\u9762\u9009\u62e9\u91cd\u65b0\u7f16\u8bd1\u7684\u65b9\u5f0f\u6765\u5b89\u88c5svn\u3002  <\/p>\n<p># \u5220\u9664subversion  <\/p>\n<p>\u6267\u884c\uff1a`yum remove subversion`  <\/p>\n<p># \u68c0\u67e5openssl\u5b89\u88c5\u60c5\u51b5  <\/p>\n<p>\u8fd9\u91cc\u5df2\u7ecf\u5b89\u88c5\uff1a  <\/p>\n<p>&#8220;`<br \/>[kuring@localhost tmp]$ rpm -qa | grep openssl<br \/>openssl-1.0.1e-15.el6.x86_64<br \/>openssl-devel-1.0.1e-15.el6.x86_64<br \/>&#8220;`  <\/p>\n<p># \u5b89\u88c5neon  <\/p>\n<p>\u8fd9\u91cc\u9009\u62e9\u7684\u5b89\u88c5\u7248\u672c\u4e3a0.29.6\uff0csubversion\u5bf9neon\u7684\u7248\u672c\u6709\u8981\u6c42\u3002\u5982\u679c\u4e0d\u662fsubversion\u7684\u7248\u672c\uff0c\u5728\u6267\u884csubversion\u4e0b\u7684configure\u6587\u4ef6\u65f6\u5e76\u4e0d\u4f1a\u62a5\u9519<br \/>&#8220;`<br \/>[kuring@localhost software]$ tar zvxf neon-0.29.6.tar.gz<br \/>[kuring@localhost software]$ cd neon-0.29.6<br \/>.\/configure &#8211;with-ssl=openssl<br \/>make<br \/>make install<br \/>&#8220;`  <\/p>\n<p># \u5b89\u88c5apr  <\/p>\n<p>&#8220;`<br \/>tar zvxf apr-1.5.0.tar.gz<br \/>cd apr-1.5.0<br \/>.\/configure<br \/>make<br \/>make install<br \/>&#8220;`  <\/p>\n<p># \u5b89\u88c5apr-util  <\/p>\n<p>&#8220;`<br \/>tar zvxf apr-util-1.5.3.tar.gz <br \/>cd apr-util-1.5.3<br \/>.\/configure &#8211;with-apr=\/usr\/local\/apr<br \/>make<br \/>make install<br \/>&#8220;`  <\/p>\n<p># \u4e0b\u8f7dsqllite  <\/p>\n<p>&#8220;`<br \/>unzip sqlite-amalgamation-3080401.zip<br \/>mv sqlite-amalgamation-3080401 sqlite-amalgamation<br \/>mv sqlite-amalgamation subversion-1.8.8\/&nbsp;&nbsp;&nbsp; \/\/ \u5c06\u5176\u590d\u5236\u5230subversion\u6e90\u7801\u76ee\u5f55\u4e0b<br \/>&#8220;`  <\/p>\n<p># \u5b89\u88c5subversion  <\/p>\n<p>&#8220;`<br \/>tar zvxf subversion-1.7.16.tar.gz<br \/>.\/configure &#8211;with-ssl &#8211;with-neon &#8211;with-apr=\/usr\/local\/apr &#8211;with-apr-util=\/usr\/local\/apr<br \/>make<br \/>make install<br \/>&#8220;`  <\/p>\n<p>\u7136\u540e\u518d\u6267\u884c`svn &#8211;version`\u547d\u4ee4\u53ef\u4ee5\u770b\u5230\u5df2\u7ecf\u5305\u542b\u4e86https\u534f\u8bae\u3002  <\/p>\n<p># \u53c2\u8003\u8d44\u6599  <\/p>\n<p>[SSL handshake failed: SSL error: Key usage violation in certificate has been detected CentOS](<a href=\"http:\/\/itekblog.com\/key-usage-violation-in-certificate-has-been-detected-centos\/)\">http:\/\/itekblog.com\/key-usage-violation-in-certificate-has-been-detected-centos\/)<\/a> <\/p>\n<p># \u8d44\u6599\u4e0b\u8f7d  <\/p>\n<p><font color=\"#800000\">[\u9700\u8981\u7684\u5b89\u88c5\u5305\u4e0b\u8f7d](http:\/\/pan.baidu.com\/s\/1qWNhAqS)<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n<p>\u53c2\u8003url\uff1a<a title=\"http:\/\/kuring.me\/post\/centos6.5_svn?action=show_raw\" href=\"http:\/\/kuring.me\/post\/centos6.5_svn?action=show_raw\">http:\/\/kuring.me\/post\/centos6.5_svn?action=show_raw<\/a><\/p>\n<p>\u62a5\u9519\u7684\u4fe1\u606f\uff1asvn: OPTIONS of &#8216;<a href=\"https:\/\/ablejavaserver\/svn\/myuni-home\/trunk\/myuni-home-core':\">https:\/\/ablejavaserver\/svn\/myuni-home\/trunk\/myuni-home-core&#8217;:<\/a> SSL handshake failed: SSL error: Key usage violation in certificate has been detected. (https:\/\/ablejavaserver)<\/p>\n<p>\u5728\u7528CentOS\u9ed8\u8ba4\u7684svn\u5ba2\u6237\u7aef\u5de5\u5177\u8bbf\u95eeWindows\u4e0b\u642d\u5efa\u7684subversion\u65f6\u4f1a\u63d0\u793a\u5982\u4e0b\u9519\u8bef\uff1a  <\/p>\n<p>&#8220;`<br \/>[kuring@localhost \u684c\u9762]$ svn checkout <a href=\"https:\/\/192.168.100.100\/svn\/test\">https:\/\/192.168.100.100\/svn\/test<\/a><br \/>svn: \u65b9\u6cd5 OPTIONS \u5931\u8d25\u4e8e \u201c<a href=\"https:\/\/192.168.100.100\/svn\/test:\">https:\/\/192.168.100.100\/svn\/test:<\/a> SSL handshake failed: SSL \u9519\u8bef\uff1aKey usage violation in certificate has been detected. (<a href=\"https:\/\/192.168.100.100)\">https:\/\/192.168.100.100)<\/a><br \/>&#8220;`  <\/p>\n<p>\u901a\u8fc7\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u53ef\u4ee5\u770b\u5230svn\u662f\u652f\u6301https\u534f\u8bae\u7684\uff1a  <\/p>\n<p>&#8220;`<br \/>[kuring@localhost ~]$ svn &#8211;version<br \/>svn\uff0c\u7248\u672c 1.6.11 (r934486)<br \/>&nbsp;&nbsp; \u7f16\u8bd1\u4e8e Apr 11 2013\uff0c16:13:51  <\/p>\n<p>\u7248\u6743\u6240\u6709 (C) 2000-2009 CollabNet\u3002<br \/>Subversion \u662f\u5f00\u653e\u6e90\u4ee3\u7801\u8f6f\u4ef6\uff0c\u8bf7\u53c2\u9605 <a href=\"http:\/\/subversion.tigris.org\/\">http:\/\/subversion.tigris.org\/<\/a> \u7ad9\u70b9\u3002<br \/>\u6b64\u4ea7\u54c1\u5305\u542b\u7531 CollabNet(<a href=\"http:\/\/www.Collab.Net\/)\">http:\/\/www.Collab.Net\/)<\/a> \u5f00\u53d1\u7684\u8f6f\u4ef6\u3002  <\/p>\n<p>\u53ef\u4f7f\u7528\u4ee5\u4e0b\u7684\u7248\u672c\u5e93\u8bbf\u95ee\u6a21\u5757:  <\/p>\n<p>* ra_neon : \u901a\u8fc7 WebDAV \u534f\u8bae\u4f7f\u7528 neon \u8bbf\u95ee\u7248\u672c\u5e93\u7684\u6a21\u5757\u3002<br \/>&nbsp; &#8211; \u5904\u7406\u201chttp\u201d\u65b9\u6848<br \/>&nbsp; &#8211; \u5904\u7406\u201chttps\u201d\u65b9\u6848<br \/>* ra_svn : \u4f7f\u7528 svn \u7f51\u7edc\u534f\u8bae\u8bbf\u95ee\u7248\u672c\u5e93\u7684\u6a21\u5757\u3002&nbsp; &#8211; \u4f7f\u7528 Cyrus SASL \u8ba4\u8bc1<br \/>&nbsp; &#8211; \u5904\u7406\u201csvn\u201d\u65b9\u6848<br \/>* ra_local : \u8bbf\u95ee\u672c\u5730\u78c1\u76d8\u7684\u7248\u672c\u5e93\u6a21\u5757\u3002<br \/>&nbsp; &#8211; \u5904\u7406\u201cfile\u201d\u65b9\u6848<br \/>&#8220;`  <\/p>\n<p>\u8fd9\u662f\u7531\u4e8esvn\u5ba2\u6237\u7aef\u5728https\u534f\u8bae\u4e2d\u4f7f\u7528\u4e86GnuTLS\u5e93\u9020\u6210\u7684\uff0c\u5c06\u5176\u66f4\u6539\u4e3a\u4f7f\u7528openssl\u5e93\u5373\u53ef\u3002\u901a\u8fc7\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u53ef\u4ee5\u67e5\u770bsvn\u4f7f\u7528\u7684\u5e93\uff1a  <\/p>\n<p>&#8220;`<br \/>[kuring@localhost bin]$ ldd svn | grep ssl<br \/>[kuring@localhost bin]$ ldd svn | grep tls<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgnutls.so.26 =&gt; \/usr\/lib64\/libgnutls.so.26 (0x00007f33004ad000)<br \/>&#8220;`  <\/p>\n<p>&#8212;&#8212;-  <\/p>\n<p>\u4e0b\u9762\u9009\u62e9\u91cd\u65b0\u7f16\u8bd1\u7684\u65b9\u5f0f\u6765\u5b89\u88c5svn\u3002  <\/p>\n<p># \u5220\u9664subversion  <\/p>\n<p>\u6267\u884c\uff1a`yum remove subversion`  <\/p>\n<p># \u68c0\u67e5openssl\u5b89\u88c5\u60c5\u51b5  <\/p>\n<p>\u8fd9\u91cc\u5df2\u7ecf\u5b89\u88c5\uff1a  <\/p>\n<p>&#8220;`<br \/>[kuring@localhost tmp]$ rpm -qa | grep openssl<br \/>openssl-1.0.1e-15.el6.x86_64<br \/>openssl-devel-1.0.1e-15.el6.x86_64<br \/>&#8220;`  <\/p>\n<p># \u5b89\u88c5neon  <\/p>\n<p>\u8fd9\u91cc\u9009\u62e9\u7684\u5b89\u88c5\u7248\u672c\u4e3a0.29.6\uff0csubversion\u5bf9neon\u7684\u7248\u672c\u6709\u8981\u6c42\u3002\u5982\u679c\u4e0d\u662fsubversion\u7684\u7248\u672c\uff0c\u5728\u6267\u884csubversion\u4e0b\u7684configure\u6587\u4ef6\u65f6\u5e76\u4e0d\u4f1a\u62a5\u9519<br \/>&#8220;`<br \/>[kuring@localhost software]$ tar zvxf neon-0.29.6.tar.gz<br \/>[kuring@localhost software]$ cd neon-0.29.6<br \/>.\/configure &#8211;with-ssl=openssl<br \/>make<br \/>make install<br \/>&#8220;`  <\/p>\n<p># \u5b89\u88c5apr  <\/p>\n<p>&#8220;`<br \/>tar zvxf apr-1.5.0.tar.gz<br \/>cd apr-1.5.0<br \/>.\/configure<br \/>make<br \/>make install<br \/>&#8220;`  <\/p>\n<p># \u5b89\u88c5apr-util  <\/p>\n<p>&#8220;`<br \/>tar zvxf apr-util-1.5.3.tar.gz <br \/>cd apr-util-1.5.3<br \/>.\/configure &#8211;with-apr=\/usr\/local\/apr<br \/>make<br \/>make install<br \/>&#8220;`  <\/p>\n<p># \u4e0b\u8f7dsqllite  <\/p>\n<p>&#8220;`<br \/>unzip sqlite-amalgamation-3080401.zip<br \/>mv sqlite-amalgamation-3080401 sqlite-amalgamation<br \/>mv sqlite-amalgamation subversion-1.8.8\/&nbsp;&nbsp;&nbsp; \/\/ \u5c06\u5176\u590d\u5236\u5230subversion\u6e90\u7801\u76ee\u5f55\u4e0b<br \/>&#8220;`  <\/p>\n<p># \u5b89\u88c5subversion  <\/p>\n<p>&#8220;`<br \/>tar zvxf subversion-1.7.16.tar.gz<br \/>.\/configure &#8211;with-ssl &#8211;with-neon &#8211;with-apr=\/usr\/local\/apr &#8211;with-apr-util=\/usr\/local\/apr<br \/>make<br \/>make install<br \/>&#8220;`  <\/p>\n<p>\u7136\u540e\u518d\u6267\u884c`svn &#8211;version`\u547d\u4ee4\u53ef\u4ee5\u770b\u5230\u5df2\u7ecf\u5305\u542b\u4e86https\u534f\u8bae\u3002  <\/p>\n<p># \u53c2\u8003\u8d44\u6599  <\/p>\n<p>[SSL handshake failed: SSL error: Key usage violation in certificate has been detected CentOS](<a href=\"http:\/\/itekblog.com\/key-usage-violation-in-certificate-has-been-detected-centos\/)\">http:\/\/itekblog.com\/key-usage-violation-in-certificate-has-been-detected-centos\/)<\/a> <\/p>\n<p># \u8d44\u6599\u4e0b\u8f7d  <\/p>\n<p><font color=\"#800000\">[\u9700\u8981\u7684\u5b89\u88c5\u5305\u4e0b\u8f7d](http:\/\/pan.baidu.com\/s\/1qWNhAqS)<\/font><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[89,57],"class_list":["post-4347","post","type-post","status-publish","format-standard","hentry","category-5","tag-https","tag-svn","category-5-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/4347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4347"}],"version-history":[{"count":1,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/4347\/revisions"}],"predecessor-version":[{"id":4348,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/4347\/revisions\/4348"}],"wp:attachment":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}