Accessing SVN repository with untrasted (self-signed) certificate.
Added by Eugene Doe about 10 years ago
Hello!
Could anyone please help me set up integration with the repository with the self-signed certificate?
I followed the instructions from need some help with accessing SVN repository over HTTPS
sudo -u www-data svn --config-dir /srv/redmine/.svn/subversion list https://my_server
asked for the certificate confirmation once, I accepted it permanently. Now this command works (no password, no confirmation needed).
Then I modified subversion_adapter.rb:
# grep SVN_BIN /srv/redmine/lib/redmine/scm/adapters/subversion_adapter.rb SVN_BIN = Redmine::Configuration['scm_subversion_command'] || "svn --config-dir /srv/redmine/.svn/subversion" @@bin ||= SVN_BIN
Then I restarted apache, cleared its logs and tried to accessing repository with redmine, and in /var/log/apache2/error.log:
[ 2015-03-23 00:32:00.7415 25260/b5d85b40 Pool2/Implementation.cpp:1182 ]: [App 25313 stderr] sh: 1: [ 2015-03-23 00:32:00.7415 25260/b5d85b40 Pool2/Implementation.cpp:1182 ]: [App 25313 stderr] svn --config-dir /srv/redmine/.svn/subversion: not found [ 2015-03-23 00:32:00.7416 25260/b5d85b40 Pool2/Implementation.cpp:1171 ]: [App 25313 stderr] [ 2015-03-23 00:32:00.7445 25260/b5d85b40 Pool2/Implementation.cpp:1182 ]: [App 25313 stderr] sh: 1: [ 2015-03-23 00:32:00.7446 25260/b5d85b40 Pool2/Implementation.cpp:1182 ]: [App 25313 stderr] svn --config-dir /srv/redmine/.svn/subversion: not found [ 2015-03-23 00:32:00.7446 25260/b5d85b40 Pool2/Implementation.cpp:1171 ]: [App 25313 stderr]
What does that mean? svn not found? But it exists. If I change "svn --config-dir /srv/redmine/.svn/subversion" back to "svn" it fails with "Server certificate verification failed", so svn does exists and available. And /srv/redmine/.svn/subversion is accessible to www-data, the command 'sudo -u www-data stat /srv/redmine/.svn/subversion' works fine.
Replies (1)
RE: Accessing SVN repository with untrasted (self-signed) certificate.
-
Added by Eugene Doe about 10 years ago
Oh, sorry for bothering anyone, I found a bug already opened: #12114