Secure Subversion Setup(Centos + Apache + SSL)


Secure subversion setup (Centos 5.6+Apache+SSL)

Subversion is an open source version control for any type of programming. For ex. in software development, versioning is most important. Versioning is most recommended in web development.

Subversion can keep maximum of 232 – 1 versions in 32-bit operating system. For 64-bit it’s infinite.
Subversion can serve files in two methods; one is through SVN daemon – which run SVN as a service, second is running SVN with apache – which run as application.
Setting up SVN daemon is very easy compare to run with apache.
1.       Install SVN as a daemon.
 yum install subversion
#second step is to create SVN repository,
svnadmin create /var/www/svnrepo
cd /var/www/svnrepo


#edit configuration file in svnrepo
nano conf/ svnserve.conf
#find the below lines and uncomment or add these lines,
anon-access = none
auth-access = write
password-db = passwd
#save the file

#next edit the file called passwd, which contain users who authorized to access SVN repository
nano /conf/passwd
#add users and password under [users] directive
#save and close.

Download As PDF
Create Self Signed SSL certificate
user@localhost# openssl genrsa -des3 -out private.key 2048
user@localhost# openssl rsa -in svn.key -out private.pem
(This is mandatory for some web servers, for ex light httpd only accepts .pem file. Apache server can also accepts .pem file)
user@localhost# openssl req –new –key private.key –out requesr.csr
Enter pass phrase for private.key:

You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ‘.’, the field will be left blank.
—–
Country Name (2 letter code) [GB]:
State or Province Name (full name) [Berkshire]:
Locality Name (eg, city) [Newbury]:
Organization Name (eg, company) [My Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server’s hostname) []:
Email Address []:


Download As PDF