在使用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.110/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 + VisualSVN Server2.5.5破解版(兼容32位、64位) 一、VisualSVN Server (服务器端) http://www.visualsvn.com/files/VisualSVN-Server-2.5.5.msi 注册机的使用方法:把keygen.exe拷贝到安装文件夹下...
知识点二:VisualSVN Server主从同步备份的配置步骤 1. 在主服务器上创建一个新仓库,例如名为"test",其URL为***。 2. 在主服务器上创建一个同步用户,例如用户名为abc123,密码为123,并将该用户添加到"test"库中...
这篇指南将详细介绍VisualSVN Server的安装、配置以及日常使用的步骤,帮助你更好地理解和操作这个强大的工具。 **1. 安装VisualSVN Server** 首先,你需要从VisualSVN官网下载VisualSVN Server的安装包。安装过程...
8. **日志和监控**:VisualSVN Server提供详细的日志记录,帮助管理员追踪服务器活动,诊断问题,同时可以通过监控工具实时查看服务器状态。 9. **自动升级**:VisualSVN Server的自动升级功能使得管理员可以方便地...
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是一款基于Windows平台的Subversion(SVN)服务器管理工具,用于集中管理和控制版本控制系统中的代码和其他文件。以下将详细阐述其配置和使用步骤。 1. **...
V3.x版本安装时,要选择是【标准版(Standard)】还是【企业版(Enterprise)】 标准版的具备基本的功能,无用户数量限制 企业版的可以使用配置工具configurator V4.x版本开始,使用全新的授权模式 分为三个类别:...
"VisualSVN Server及客户端的配置和使用" 本篇文章将介绍VisualSVN Server及客户端的配置和使用方法,主要涵盖了VisualSVN Server的安装和配置、代码库的创建、用户及权限管理、TortoiseSVN的基本使用方法等内容。 ...
【网络文件VisualSVN Server配置与使用方法】 VisualSVN Server是一款用于管理Subversion(SVN)仓库的工具,主要应用于项目代码的版本控制和协作。本文将详细介绍如何配置和使用VisualSVN Server,以及TortoiseSVN...
1. **安装与配置简便**:VisualSVN Server的安装向导使得设置SVN服务器变得简单易行,用户只需几步操作就能完成服务器的安装和配置,包括SSL证书的配置、仓库的创建以及用户权限的管理。 2. **集成Active Directory...
### VisualSVN Server 使用手册详解 #### 一、概述 VisualSVN Server 是一款功能强大的 Subversion (SVN) 版本控制系统服务器端组件,它为 Windows 环境下的团队开发提供了简单高效的版本控制解决方案。本文档将...
在安装和配置VisualSVN Server时,管理员应当注意以下几点: - 确保VisualSVN Server运行在稳定的操作系统版本上。 - 在配置服务器时,需要考虑防火墙设置,确保允许通过正确的端口访问。 - 为防止未授权访问,应...
- VisualSVN Server支持Active Directory集成,可以方便地使用AD用户进行身份验证,简化权限管理。 - 版本4.10可能强化了用户权限控制,提供了更精细的权限分配机制,如基于路径的权限控制,让管理员能够更灵活地...
**VisualSVN Server安装与配置指南** VisualSVN Server是一款基于Windows平台的Subversion(简称SVN)服务器软件,它提供了简单易用的图形化管理界面,使得SVN版本控制系统在Windows环境下的部署和管理变得更为便捷...
VisualSVN Server 2.1.1是一款专为Windows平台设计的Subversion(SVN)...通过"VisualSVN Server的配置和使用方法 - Svn中文网.png"这个文件,用户可以更详细地了解如何操作,确保能够顺利配置和使用VisualSVN Server。
VisualSVN Server默认使用内置的Windows域身份验证,但也可以配置为支持其他认证方式,如LDAP或外部数据库。 修改VisualSVN Server客户端的密码配置涉及以下几个步骤: 1. 登录VisualSVN Server管理界面:在服务器...
VisualSVN Server是一个集成的svn服务端工具,并且包含mmc管理工具。是一款svn服务端不可多得的好工具。你可以先安装好VisualSVN Server后,运行VisualSVN Server Manger,然后创建新的代码库,并设置一下安全性能,...