リポジトリに、エントリ/リビジョンが存在しません(オレオレ証明書でSSL)

オレオレ証明書で、RedmineSVNアクセス時にエラー。

エラー「リポジトリに、エントリ/リビジョンが存在しません。」

http://redmine.jp/faq/repository/error_scm_not_found/

# Apacheエラーログ

svn: OPTIONS of 'https://mydomain/svn/repository/trunk/myproject':
Server certificate verification failed: issuer is not trusted
(https://mydomain)

263行目に"--trust-server-cert"を追記する。Passengerを利用している場合はApacheを再起動する。

# vi /var/redmine/lib/redmine/scm/adapters/subversion_adapter.rb

259         def credentials_string
260           str = ''
261           str << " --username #{shell_quote(@login)}" unless @login.blank?
262           str << " --password #{shell_quote(@password)}" unless@login.blank? || @password.blank?
263           str << " --no-auth-cache --non-interactive --trust-server-cert"
264           str
265         end

参考

http://ameblo.jp/welx/entry-11021654432.html

http://d.hatena.ne.jp/TrinityT/20110628/1309256491