在 svn 中使用证书

发布于 2024-10-06 08:18:58 字数 921 浏览 0 评论 0原文

我希望在 Linux 命令行 svn 中使用证书。

我在 Windows 上使用 IE 获取了证书,并将其导出。然后我把它复制到Linux上。这是我的经验(如下)。我想a) 修复这里的问题b) 了解 Subversion 和 Apache 在存储库不在我的本地主机上的情况下,但是在远程主机上。

在谷歌搜索中找出解决方案并理解它时,我不断看到 Apache 安装和配置说明。是否是这样,尽管没有在本地托管存储库或从我的主机向其他人提供它,我仍然必须安装和配置 Apache?这些讨论似乎总是属于向其他人提供存储库的背景,而我并不想这样做。

我只是尝试使用我公司的证书颁发机构生成的证书从我公司的远程主机使用 Subversion 存储库。

russ@russ-elite-book:~/certificates> ll
total 4
-rw-r--r-- 1 russ russ 4060 2010-12-07 15:36 mybadge.pfx

russ@russ-elite-book:~/certificates> svn co https://xyz.acme.com/svn/xyz/trunk
Authentication realm: https://xyz.acme.com:443
Client certificate filename: ./mybadge.pfx
Passphrase for '/home/russ/certificates/mybadge.pfx': 
svn: Server sent unexpected return value (403 Forbidden) in response to OPTIONS \
       request for 'https://xyz.acme.com/svn/xyz/trunk'

非常感谢所有能够提供帮助的人。

拉斯

I wish to use a certificate with Linux command-line svn.

I obtained my certificate using IE on Windows, and exported it. Then I copied it to Linux. Here's my experience (below). I'd like to a) fix what's wrong here and b) understand the relationship between Subversion and Apache in the case where the repository isn't on my local host, but on a remote host.

In Googling to figure out a solution and understand it, I keep seeing Apache installation and configuration instructions. Is it the case that, despite not hosting the repository locally or making it available to others from my host, I still must install and configure Apache? Those discussions always seem to fall in the context of serving up a repository to others and I'm not trying to do that.

I'm only trying to consume a Subversion repository from a remote host in my company using a certificate generated by my company's certificate authority.

russ@russ-elite-book:~/certificates> ll
total 4
-rw-r--r-- 1 russ russ 4060 2010-12-07 15:36 mybadge.pfx

russ@russ-elite-book:~/certificates> svn co https://xyz.acme.com/svn/xyz/trunk
Authentication realm: https://xyz.acme.com:443
Client certificate filename: ./mybadge.pfx
Passphrase for '/home/russ/certificates/mybadge.pfx': 
svn: Server sent unexpected return value (403 Forbidden) in response to OPTIONS \
       request for 'https://xyz.acme.com/svn/xyz/trunk'

Copious thanks to any and all who can help.

Russ

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄人书 2024-10-13 08:18:58

最有可能的是,根据该响应,您的证书无权访问该 svn 主机;这可能是服务器上的权限问题。

Most likely, based on that response, your certificate doesn't have permission to access that svn host; it is probably a permissions issue on the server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文