SVN Commit证书问题

标签 svn cron certificate autocommit

我有一个 cronjob,它每五分钟提交一些文件。但是,它不再起作用了。它打印

Error validating server certificate for 'https://xx.xx.xx.xx:443':
 - The certificate hostname does not match.
Certificate information:
 - Hostname: *.xxxtest.com
 - Valid: from Jun  2 18:45:22 2010 GMT until Jul  4 15:59:29 2012 GMT
 - Issuer: Equifax Secure Certificate Authority, Equifax, US
 - Fingerprint: c1:34:e1:1c:2b:xx:2d:52:2a:xx:47:f9:5c:31:ad:fc:dd:02:db:xx
(R)eject, accept (t)emporarily or accept (p)ermanently? svn: Commit failed (details follow):
svn: OPTIONS of 'https://xx.xx.xx.xx/svn/Kavrakoglu/trunk/CalismaAlani/Dataset/tjmkld874y2bfdb9149884yhndmkg5mk/VTIT080200BY13': Server certificate verification failed: certificate issued for a different hostname (https://xx.xx.xx.xx)

当我手动运行这个脚本时,它没有报错并成功提交。这个问题的原因可能是什么,我该如何解决?谢谢

最佳答案

共有三个选项:

  1. 让您的网络管理员颁发更新/正确的证书(最佳选择)
  2. 将命令更改为 svn commit --non-interactive --trust-server-cert
  3. Sudo 到 root,然后更改为 cron 使用的任何用户:su cron_user 然后手动提交。您应该会收到上述提示,然后您可以选择选项“p”以永久接受。

关于SVN Commit证书问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7649263/

相关文章:

svn - 颠覆 : Merging a vendor's source code releases into mainline at regular intervals

c# - SharpSVN 中工作目录的当前版本

svn - 在 TortoiseSVN 中获取锁定

cron - cPanel cron 作业,未指定输入文件?

ssl - 如何获得受信任的 SSL 证书?

ios - iOS 配置门户中的开发证书是什么?

ssl - 无法通过通用名称访问服务器

svn - 如何在p4merge中设置文件标签

ruby-on-rails - 如何在 Google App Engine 上调试 Cron 作业?

r - 为什么(或何时)Rscript(或更小)比 R CMD BATCH 更好?