svn 验证服务器证书时出错
如果我使用任何 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
修复(对于 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:...
p
.Have Fun !
搜索名为“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.
修复(适用于 Windows):
C:\Users\"USERNAME"\AppData\Roaming\Subversion\auth\svn.ssl.server
svn list https:。 ..
p
永久接受证书。Fix (for Windows):
C:\Users\"USERNAME"\AppData\Roaming\Subversion\auth\svn.ssl.server
svn list https:...
p
.可能不适合所有用户,但对我来说没问题并且有效:
我在 ~/.subversion/servers 中编辑了以下行
:
Probably not suitable for all users but is okay for me and worked:
I edited in the ~/.subversion/servers the following line:
to
SVNX上SSL证书错误消息的解决方案
打开命令提示符并运行 svn list https://Your-Link- Goes-Here/
列表项 通过输入永久接受证书 p
希望这对某人有帮助。
Solution for SSL Certificate Error Message on SVNX
Open the command prompt and run svn list https://Your-Link-Goes-Here/
List item Accept certificate permanently by entering p
Hope this Helps Someone.
执行 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.
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.
可能还需要 chmod -R 775 ~/.subversion/auth 。
chmod -R 775 ~/.subversion/auth
may also be needed.