SVN提交证书问题

时间:2011-10-04 14:13:28

标签: 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 个答案:

答案 0 :(得分:5)

有三种选择:

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