2

为了使用 websvn 浏览远程存储库,我在本地主机(windows7,wampserver)中安装了 websvn。Websvn 通过 php 函数的 proc_open 执行 svn 命令。当 svn 命令是:

svn info "http://site.com/svnurl" --xml --non-interactive --username "guest" --password "guest"

proc_open 返回正确的结果。但是当 svn 命令是:

svn info "https://site.com/svnurl" --non-interactive --trust-server-cert --username "guest" --password "guest"

proc-open 返回错误。

svn:E175002:无法连接到 URL 'https://site.com/svnurl' 上的存储库 svn:E175002:'https://site.com/svnurl'的选项:服务器证书验证失败:为不同的主机名,发行者不受信任(https://site.com/svnurl)。

这里,site.com/svnurl 是虚幻的 url,真实的 url 是 205.174.169.180:9880/GBoomTest.ca。

你怎么能解决这个问题?

4

0 回答 0