`

使用VisualSVN Server配置hook时遇到问题:Server certificate verification failed

阅读更多

      在使用VisualSVN Server建立了SVN服务端后,为一个版本库设置post-commit hook.遇到类似下面

的错误信息:

      Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted

 

      Google了一些资料,找到下面这个web:

      Server certificate verification failed: certificate issued for a different hostn

      此web内容在最后将转帖出来.

 

      参照上述web给出的方式进行操作后,仍然遇到之前的错误信息.根据文中的解释,判断

应该对VisualSVN Server提供的Certificate信息做调整.

      在VisualSVN的Properties设置中,找到'Certificate'选项卡,对'Certificate Information'进行更改.

因为使用post-commit hook去更新指定的workcopy目录,而workcopy目录访问SVN时采用IP地址,

故在'Certificate Information'中,也采用的是相同的IP地址.修改完成,重启VisualSVN Server,重新

测试post-commit,上述的错误将被消除.

      另外,要注意的是,Certificate Information是有时效的.

 

      下面转帖上面的web中的内容:

> PROPFIND request failed on '/svn/Superscout'
> PROPFIND of '/svn/Superscout': Server certificate verification 
> failed: certificate issued for a different hostname, issuer is not 
> trusted (https://XX.XX.XX.XX)

First, here's how to fix the situation:

1. Open Terminal (in Utilities, in Applications)
2. Type some svn command against your repository, say "svn ls https://82.100.10.11​0/svn/Superscout 
"
3. You'll get a text prompt about the server's certificate, asking you 
what to do
4. Type "p" (and return), meaning "permanently accept this certificate 
anyway"

That answer will be saved away in a place that both the command line 
"svn" and also SCPlugin will reuse.

Now, the explanation, in case you're curious:

You're accessing Subversion through the HTTP protocol, the same one 
used by web browsers. This is probably the most common way to use SVN. 
HTTP servers can, and often do, use an encrypted connection, called 
"https". Subversion can do that, too, and that's what's going on here.

The encryption includes a "server certificate," a digital signature 
that proves that the server you're talking to really is the one you 
think it is. This is included because it is possible to arrange so 
that connections you think are going to one computer actually go to 
another. There's an attack called the "man in the middle," where some 
bad person sets things up this way, then forwards messages back and 
forth between you and the true server. Your web browser (or 
Subversion) sends and receives exactly the packets it expects to, but 
the "man in the middle" is reading everything. Unfortunately, there is 
no way to detect or prevent this from the stream of messages alone.

The server certificate protects you against this, because the server 
certificates are digitally signed by someone else. The idea is that 
there should be a few signatories that you trust to do this, and you 
can confirm that one of these signed a given server's certificate, and 
hence you trust that it's the one you want. This is the same as 
checking a person's driver's license: you trust the state to attest 
who the person is; you've seen driver's licenses before and can spot a 
phony (at least, if it's not too good a phony), and so having seen the 
license, you can trust that the person is who they claim to be.

This process isn't working for you. The messages actually say there 
are two problems:

- certificate issued for a different hostname
- issuer is not trusted

In the first problem: if I claim to be "Jack Repenning," and attempt 
to prove that by showing you a license for "Fred Smithers," you'd be 
more than a little suspicious, right? Same thing here. However, this 
is probably because you told Subversion to contact "https://82.100.10.110 
" -- that is, the server's "name" is 82.100.10.110. That's the host 
*address*, but typically the server's actual certificate is for their 
host *name*. If you try again, using "https:// 
server.superscout.co.uk" (or whatever the name actually is), this part 
will probably go away. But maybe not: when I try to look up that 
address in the global DNS name base, I don't get a reply. Probably 
that address is internal to your company network, and so conceivably 
you may not have DNS properly set up for it. Maybe that's why you used 
an address rather than a name. At any rate, the procedure above will 
reassure Subversion that this combination really is OK.

In the second problem: metaphorically, Subversion is saying "this 
looks like a driver's license, but it's from some country I've never 
heard of, how do I know whether it's a valid license from there?" 
Actually, there's a good chance that this certificate is signed by one 
of the standard authorities: there's a bug in OS X about the 
installation of this information, as a result of which Subversion (and 
SCPlugin) requires some extra configuration work in order to find the 
list of trusted authorities. If you're going to be connecting to a 
great many different servers, it might be worth your while to fix 
this. That can be done, but until Apple fixes the bug it also means 
you have to manually update it from time to time (about once a year), 
which would be tiresome.

The procedure above works once for all time, for this one address. If 
you only have to do it a few times, you're better off just doing it 
than fixing the authority list. But if you want to fix up the list, 
you can find the directions in the users@ list on scplugin. Or, just 
ask there again, and someone will restate them, or point you to them.

-==-
Jack Repenning
jackrepenning at tigris dot org
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"

分享到:
评论

相关推荐

    VisualSvn Server安装及配置

    1 、VisualSvn Server VisualSvn Server是免费的,而VisualSvn是收费的。VisualSvn是Svn的客户端,和...使用 VisualSvn Server是Svn的服务器端,包括Subversion、Apache和用户及权限管理,优点在上面已经说过了。

    VisualSVN + VisualSVN Server2.5.5破解版(兼容32位、64位)

    VisualSVN + VisualSVN Server2.5.5破解版(兼容32位、64位) 一、VisualSVN Server (服务器端) http://www.visualsvn.com/files/VisualSVN-Server-2.5.5.msi 注册机的使用方法:把keygen.exe拷贝到安装文件夹下...

    VisualSVN Server 及其配置和使用方法

    VisualSVN Server 及其配置和使用方法 VisualSVN Server 及其配置和使用方法

    Windows系统VisualSVN-Server下载

    Windows系统VisualSVN-Server下载 一、下载VisualSVN-Server 一、安装SVN服务端 1、进入https://www.visualsvn.com/server/download/下载SVN服务端 2、下载后双击即可安装,选择下一步 3、同意许可,选择下一步...

    VisualSVN Server 3.5.4 破解补丁

    VisualSVN Server allows you to easily install and manage a fully-functional Subversion server on the Windows platform. Thanks to its robustness, unbeatable usability and unique enterprise-grade ...

    VisualSVN Server的配置和使用方法

    VisualSVN Server的配置和使用方法

    VisualSVN Server和TortoiseSVN使用说明

    VisualSVN Server和TortoiseSVN使用说明 安装包: TortoiseSVN-1.7.12.24070-win32-svn-1.7.9 .msi VisualSVN-Server-2.5.9.msi LanguagePack_1.7.12.24070-win32-zh_CN.msi 一、 安装说明 二、 VisualSVN Server...

    免配置 VisualSVN Server 2.1.10

    VisualSVN Server是一个集成的svn服务端工具,并且包含mmc管理工具。是一款svn服务端不可多得的好工具。你可以先安装好VisualSVN Server后,运行VisualSVN Server Manger,然后创建新的代码库,并设置一下安全性能,...

    VisualSVN Server V2.6.0服务器配置和实现远程备份

    步骤一:安装VisualSVN Server Manger软件,软件安装在D:\Program Files\VisualSVN Server\,库文件配置在” E:\Repositories\ “; 步骤二:创建用户和创建库文件 配置服务器B: 步骤一:安装VisualSVN Server ...

    VisualSVN Server增加在线修改用户密码的功能

    2、修改conf目录下的httpd-custom.conf文件, 把“ScriptAlias”一行后面的路径修改为你的机器上的VisualSVN Server的实际路径; ------------------------- LoadModule alias_module bin/mod_alias.so LoadModule ...

    VisualSVN Server 4.0.0 企业破解版

    VisualSVN Server可搭建64位Windows环境SVN服务器端,4.0.0版本自带用户通过网页自行更改密码的功能。免费版限15个用户,企业版无限用户。

    VisualSVN 4.0.6 破解

    VisualSVN Core L dll 替换 Program Files x86 VisualSVN bin VisualSVN Core L dll VisualSVN 破解 VisualSVN Crack 请注意: 这是客户端程序 而非VisualSVN Server NOTICE: It is a crack for VisualSVN ...

    VisualSVN Server 2.0.8 汉化包

    VisualSVN Server是个极方便安装、配置的SVN集成服务器软件。用来与开发端的TortoiseSVN配合使用组成版控开发体系是最好的选择。 2.0.8版本内包含了Subversion 1.6.6(即SVN),Apache 2.2.13 VisualSVN Server目前...

    VisualSVN Server+注册机

    VisualSVN.Server.Enterprise.Edition.v2.7.2.Incl.Keymaker.and.Patch

    【精华】 VisualSVN-Server

    因为如果直接使用Subversion,那么在Windows 系统上,要想让它随系统启动,就要封装SVN Server为windws service,还要通过修改配置文件来控制用户权限,另外如果要想以Web方式【http协议】访问,一般还要安装配置...

    VisualSVN Server仓库镜像同步脚本

    本脚本可在一台Windows备份服务器上创建某个VisualSVN Server的镜像仓库,实现如下功能: 1. 导入源SVN服务器上的已有仓库和数据到备份服务器 2. 通过定时执行脚本,把源SVN服务器的新增提交同步到备份服务器 备份...

    VisualSVN Server及客户端的配置和使用

    VisualSVN Server及客户端的配置和使用

    visualsvn server3.5.3安装包+破解+web密码修改

    visualsvn server3.5.3安装包 visualsvn server3.5.3破解 用户在web上修改自己密码 在win7 及 winserver2008上可运行

    VisualSVN Server 4.0以上.rar

    VisualSVN Server标准版对于大多数的开发来说是足够用的,当然对于大型企业需要使用企业版也是更好的,它有一些更高级的功能支持。VisualSVN Server集成了Subversion和Apache,安装的时候Svn Server已经封装为...

Global site tag (gtag.js) - Google Analytics