P
P
Pavel Kaptur2017-08-08 17:05:55
Debian
Pavel Kaptur, 2017-08-08 17:05:55

How to set up SSL for subversion?

Hello everyone, I was asked to set up a Subversion server and I started creating, I used guide . But I really feel that it is not complete, firstly I could not do it

svn import -m "testing over https" https://example.com/svn_wombat ~/TEMP/
in which the parameters are mixed up in places, I corrected this, but still, when I try to make a commit, I get
svn: E170013: Unable to connect to a repository at URL ' https://cryptosvn.pk/svn_wombat '
svn: E120171: Error running context: An error occured during SSL communication

Of course, everything is set up as in the manual

DAV svn
SVNPath /var/svn-repos/project_wombat
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
SSLRequireSSL

But for svn+ssh import -m I did.
Next, I moved on to configuring WebSVN and ran into unforeseen difficulties as well. I edited 000-default.conf and ssl-default.conf and http and https version of the site worked, but it gives me an error
Error running command: svn --non-interactive --config-dir /tmp log --xml --quiet 'file:///var/svn_repos/@' --limit 1
svn: E180001: Unable to connect to a repository at URL 'file:///var/svn_repos/'
svn: E180001: Unable to open an ra_local session to URL
svn: E180001: Unable to open repository 'file:///var/svn_repos/'

Does anyone have an up to date manual for this?
apt-get gave an error while installing WebSVN
failed to create symbolic link '/etc/apache2/conf.d/websvn': No such file or directory
I myself created the conf.d folder and copied the config from there according to the instructions

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Kaptur, 2017-08-09
@drem1lin

In general, the problem turned out to be in the WebSVN configuration, where I made a mistake in the parameters that the configurator requests. When I asked for a folder for the first time, I specified the path to the repositories, and when I asked for the second time, I also specified this folder, which was not worth doing

V
Vapaamies, 2017-08-09
@vapaamies

If the SVN server needs to be set up in LAN, it is understood that the repository must also be in LAN, that is, you must have the repository itself in the form of a set of files and directories or a dump.
You need to start by putting the repository in the right place by simply copying or deploying from a dump or using the and svnadmin createcommands svnadmin load. You can dump external storage with the command svnrdump.
In the created repository, you need to configure the rights, or at least check the conf file of the repository. After that, you can configure Apache or raise a dedicated Subversion server running on the svn://. I use the second option, so I won't tell you about Apache.
WebSVN can work through direct storage access or as a regular client, i.e. through svn://orhttps://. This is customizable by editing it include/config.php, where there are a lot of examples and explanations in the comments.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question