svn 验证服务器证书时出错

发布于 2024-11-09 22:16:09 字数 570 浏览 3 评论 0原文

如果我使用任何 svn 命令与远程服务器通信,我会收到以下错误:

Error validating server certificate for 'https://...':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: ...
 - Valid: from Wed, 01 Sep 2010 08:25:36 GMT until Thu, 06 Oct 2011 08:25:36 GMT
 - Issuer: ...
 - Fingerprint: ...
(R)eject, accept (t)emporarily or accept (p)ermanently? 

如果我永久命中,我可以正确运行该命令。但在下一个 svn 命令中,我遇到了同样的问题,必须再次确认!为什么 svn 不永久保存我的选择?我该如何解决这个问题?

感谢您的帮助!

If I use any svn command communicating with the remote server I get the following error:

Error validating server certificate for 'https://...':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: ...
 - Valid: from Wed, 01 Sep 2010 08:25:36 GMT until Thu, 06 Oct 2011 08:25:36 GMT
 - Issuer: ...
 - Fingerprint: ...
(R)eject, accept (t)emporarily or accept (p)ermanently? 

If I hit permanently I can run the command properly. But on the next svn command I get the same question and have to confirm again! Why doesn't svn save my choice permanently? How can I solve this problem?

Thanks for any help!

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

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

发布评论

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

评论(8

好久不见√ 2024-11-16 22:16:09

修复(对于 Unix):

svn.ssl.server 位于 ~/.subversion/auth

  • ~/.subversion/auth< 上递归更改所有者< /code> 或删除:
    删除 - ~/.subversion/auth/svn.ssl.server
    owner - chown -R $USER ~/.subversion/auth

  • 打开命令提示符并运行 svn list https:...

  • 输入 p 永久接受证书。

玩得开心 !

Fix (for Unix):

svn.ssl.server is on ~/.subversion/auth

  • Change Owner recursively on ~/.subversion/auth or delete:
    delete - ~/.subversion/auth/svn.ssl.server
    owner - chown -R $USER ~/.subversion/auth

  • Open the command prompt and run svn list https:...

  • Accept certficate permanently by entering p.

Have Fun !

痴骨ら 2024-11-16 22:16:09

搜索名为“svn.ssl.server”的文件夹(Windows 和 *NIX 服务器存在)并将其删除。系统可能会再次要求您保存密钥,但在那之后它应该停止询问。

Search for the folder named "svn.ssl.server" (it exists for windows and *NIX servers) and delete it. You may be asked one more time to save the key but then it should stop asking after that point.

违心° 2024-11-16 22:16:09

修复(适用于 Windows):

  • 删除 C:\Users\"USERNAME"\AppData\Roaming\Subversion\auth\svn.ssl.server
  • 打开命令提示符并运行 svn list https:。 ..
  • 输入p 永久接受证书。

Fix (for Windows):

  • Delete C:\Users\"USERNAME"\AppData\Roaming\Subversion\auth\svn.ssl.server
  • Open the command prompt and run svn list https:...
  • Accept certficate permanently by entering p.
待"谢繁草 2024-11-16 22:16:09

可能不适合所有用户,但对我来说没问题并且有效:

我在 ~/.subversion/servers 中编辑了以下行

[global]
ssl-trust-default-ca = no

[global]
ssl-trust-default-ca = yes

Probably not suitable for all users but is okay for me and worked:

I edited in the ~/.subversion/servers the following line:

[global]
ssl-trust-default-ca = no

to

[global]
ssl-trust-default-ca = yes
似狗非友 2024-11-16 22:16:09

SVNX上SSL证书错误消息的解决方案

对于 Windows 用户:

  1. 打开命令提示符并运行 svn list https://Your-Link- Goes-Here/

  2. 列表项 通过输入永久接受证书 p

对于 Mac 用户:

  1. 打开终端并执行此命令 svn list https://Your-Link-Goes-此处/
  2. 输入p永久接受证书

注意:对于 Mac 用户,请确保您的证书已添加到钥匙串访问中

希望这对某人有帮助。

Solution for SSL Certificate Error Message on SVNX

For Windows User:

  1. Open the command prompt and run svn list https://Your-Link-Goes-Here/

  2. List item Accept certificate permanently by entering p

For Mac User:

  1. Open the Terminal and Execute this command svn list https://Your-Link-Goes-Here/
  2. Accept the Certificate Permanently by entering p

Note: For Mac Users make sure your Certificate is already added in Keychain Access

Hope this Helps Someone.

苍白女子 2024-11-16 22:16:09

执行 chmod 644 ~/.subversion/auth/svn.ssl.server/*
对于 UNIX 用户来说最简单,并且在连接到多个服务器时是最好的。

Doing chmod 644 ~/.subversion/auth/svn.ssl.server/*
is simplest for unix users and is best if you connect to multiple servers.

弃爱 2024-11-16 22:16:09

SVN 足够聪明,可以推断出您实际上并没有费心去验证指纹是否匹配。

咳咳。

但严肃地说, https://sourceforge.net/apps/trac/sourceforge/ wiki/Subversion#ServerCertificateVerificationFailed 指出,您应该在受信任的浏览器中打开项目 URL,以检查您没有被 MITM 攻击(应该适用于非 sourceforge 也),例如,您可以尝试检查是否通过 Tor 获得相同的指纹。

SVN is smart enough to infer that you didn't actually bother verifying that the fingerprint matches.

Ahem.

But in all seriousness, https://sourceforge.net/apps/trac/sourceforge/wiki/Subversion#ServerCertificateVerificationFailed notes that you should open the project url in a trusted browser to check you're not being MITM'ed (should work for non-sourceforge too), e.g. you can try checking that you get the same fingerprint through Tor.

榕城若虚 2024-11-16 22:16:09

可能还需要 chmod -R 775 ~/.subversion/auth 。

chmod -R 775 ~/.subversion/auth may also be needed.

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