<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>润物无声 &#187; SVN</title>
	<atom:link href="http://blog.zhourunsheng.com/tag/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zhourunsheng.com</link>
	<description>天空一朵雨做的云</description>
	<lastBuildDate>Sat, 08 May 2021 05:17:21 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Ubuntu SVN客户端连接windows VisualSVN SSL证书问题</title>
		<link>http://blog.zhourunsheng.com/2013/08/ubuntu-svn%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bf%9e%e6%8e%a5windows-visualsvn-ssl%e8%af%81%e4%b9%a6%e9%97%ae%e9%a2%98/</link>
		<comments>http://blog.zhourunsheng.com/2013/08/ubuntu-svn%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bf%9e%e6%8e%a5windows-visualsvn-ssl%e8%af%81%e4%b9%a6%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Fri, 30 Aug 2013 02:29:50 +0000</pubDate>
		<dc:creator><![CDATA[润物无声]]></dc:creator>
				<category><![CDATA[程序设计]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.zhourunsheng.com/?p=1822</guid>
		<description><![CDATA[<p>问题 英文：svn: OPTIONS of 'https://server.domain.local/svn/ [&#8230;]</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2013/08/ubuntu-svn%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bf%9e%e6%8e%a5windows-visualsvn-ssl%e8%af%81%e4%b9%a6%e9%97%ae%e9%a2%98/">Ubuntu SVN客户端连接windows VisualSVN SSL证书问题</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></description>
				<content:encoded><![CDATA[<h2>问题</h2>
<p>英文：svn: OPTIONS of 'https://server.domain.local/svn/repo': <strong>SSL handshake failed: SSL error:</strong><br />
<strong>Key usage violation in certificate has been detected</strong>. (https://server.domain.local)</p>
<p>中文：SSL handshake failed: SSL 错误：在证书中检测到违规的密钥用法。</p>
<h2>解决方案</h2>
<h2>Symptoms</h2>
<p>Subversion clients receive the following error message when attempting to connect to VisualSVN Server:</p>
<div>svn: OPTIONS of 'https://server.domain.local/svn/repo': SSL handshake failed: SSL error:<br />
Key usage violation in certificate has been detected. (https://server.domain.local)</div>
<p>You may experience the issue if both of the following conditions are met:</p>
<ul>
<li>VisualSVN Server has a self-signed certificate applied and</li>
<li>Subversion client is built against the GnuTLS library.</li>
</ul>
<div id="ctl00_ctl00_ctl00_Content_Content_Content_BreakoutControl2">
<div><img alt="Note" src="http://www.visualsvn.com/images/note.png" /></div>
<div>NoteGnuTLS library is an alternative to OpenSSL. Most Subversion clients for Windows are built against OpenSSL and are not affected by this issue. While some Subversion packages (available mostly on Linux-based operating systems such as Ubuntu and Debian) are built against GnuTLS and are affected.</div>
</div>
<h2>Technical background</h2>
<p>During the initial setup VisualSVN Server 2.5 generates a self-signed certificate and adds it to the Trusted Root Certification Authorities store on the local machine. To avoid possible security issues, VisualSVN Server makes this self-signed certificate to be valid for server authentication only (by specifying the 'Key Usage' extension). Subversion clients built against GnuTLS don't recognize such certificate and the error occurs.</p>
<h2>Workaround</h2>
<p>It's not recommended to use a self-signed certificate in a production environment. We advise to use a certificate issued by your domain or a third-party certificate authority instead of a self-signed one.</p>
<p>If you have to use a self-signed certificate please follow the instruction to generate a cerificate without specifying 'Key Usage' extension:</p>
<ol>
<li>Add the following registry value to the Windows registry（修改注册表，添加一条dword类型的键值）:
<ul>
<li>for 32-bit system:
<pre>[HKEY_LOCAL_MACHINE\SOFTWARE\VisualSVN\VisualSVN Server]
"CreateGnuTLSCompatibleCertificate"=dword:00000001</pre>
</li>
<li>for 64-bit system:
<pre>[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VisualSVN\VisualSVN Server]
"CreateGnuTLSCompatibleCertificate"=dword:00000001</pre>
</li>
</ul>
</li>
<li>Start <b>VisualSVN Server Manager</b>.</li>
<li>Go to <b>Action | Properties | Certificate</b>.</li>
<li>Click <b>Change certificate...（重新生成新证书）</b> and follow the wizard instructions to generate a new self-signed certificate.</li>
</ol>
<p>The certificate will be generated without the 'Key Usage' extension and will be compatible both with GnuTLS and OpenSSL.</p>
<p>参考资料</p>
<p>1. <a href="http://www.visualsvn.com/support/topic/00056/" target="_blank">http://www.visualsvn.com/support/topic/00056/</a></p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2013/08/ubuntu-svn%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bf%9e%e6%8e%a5windows-visualsvn-ssl%e8%af%81%e4%b9%a6%e9%97%ae%e9%a2%98/">Ubuntu SVN客户端连接windows VisualSVN SSL证书问题</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zhourunsheng.com/2013/08/ubuntu-svn%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bf%9e%e6%8e%a5windows-visualsvn-ssl%e8%af%81%e4%b9%a6%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>巧用DOS脚本删除工程的SVN信息</title>
		<link>http://blog.zhourunsheng.com/2011/07/%e5%b7%a7%e7%94%a8dos%e8%84%9a%e6%9c%ac%e5%88%a0%e9%99%a4%e5%b7%a5%e7%a8%8b%e7%9a%84svn%e4%bf%a1%e6%81%af/</link>
		<comments>http://blog.zhourunsheng.com/2011/07/%e5%b7%a7%e7%94%a8dos%e8%84%9a%e6%9c%ac%e5%88%a0%e9%99%a4%e5%b7%a5%e7%a8%8b%e7%9a%84svn%e4%bf%a1%e6%81%af/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 12:33:52 +0000</pubDate>
		<dc:creator><![CDATA[润物无声]]></dc:creator>
				<category><![CDATA[程序设计]]></category>
		<category><![CDATA[DOS]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://blog.zhourunsheng.com/?p=376</guid>
		<description><![CDATA[<p>从网络上的SVN服务器上面把代码下载下来，有时候想完全去除掉该工程项目的svn信息，我们都知道svn信息保存在 [&#8230;]</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2011/07/%e5%b7%a7%e7%94%a8dos%e8%84%9a%e6%9c%ac%e5%88%a0%e9%99%a4%e5%b7%a5%e7%a8%8b%e7%9a%84svn%e4%bf%a1%e6%81%af/">巧用DOS脚本删除工程的SVN信息</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></description>
				<content:encoded><![CDATA[<p>从网络上的SVN服务器上面把代码下载下来，有时候想完全去除掉该工程项目的svn信息，我们都知道svn信息保存在工程项目中的每个隐藏的.svn文件夹下面，如果手动删除的话，有可能删除不完全，导致重新导入的时候会出现错误，本文分享一个实用的dos脚本，只要将其放置到工程项目的根目录下，单击运行一次即可，就会全部清除掉隐藏的svn文件信息。</p>
<p>代码如下：</p>
<pre>@echo off
for /r %%a in (.) do if exist %%a.svn rd /s/q %%a.svn
pause
@echo on</pre>
<p>将其拷贝到本地的文本文件中，命名为removesvn.bat即可。</p>
<p>然后将 removesvn.bat 放到需要清除svn信息的工程文件夹中运行一次就ok。</p>
<p><a rel="nofollow" href="http://blog.zhourunsheng.com/2011/07/%e5%b7%a7%e7%94%a8dos%e8%84%9a%e6%9c%ac%e5%88%a0%e9%99%a4%e5%b7%a5%e7%a8%8b%e7%9a%84svn%e4%bf%a1%e6%81%af/">巧用DOS脚本删除工程的SVN信息</a>，首发于<a rel="nofollow" href="http://blog.zhourunsheng.com">润物无声</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zhourunsheng.com/2011/07/%e5%b7%a7%e7%94%a8dos%e8%84%9a%e6%9c%ac%e5%88%a0%e9%99%a4%e5%b7%a5%e7%a8%8b%e7%9a%84svn%e4%bf%a1%e6%81%af/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
