Dec
3
2009

Subversion + SSL on Centos 5.4

yum install mod_dav_svn subversion mod_ssl

[root@lucifer ~] htpasswd -cm /etc/-auth-conf yourusername
New password:
Re-type new password:
Adding password for user yourusername
[root@lucifer ~] htpasswd -m /etc/-auth-conf anotherusername
New password:
Re-type new password:
Adding password for user anotherusername

[root@lucifer ~] cd /var/www/ -- Or wherever you placed your path above
[root@lucifer ~] mkdir 
[root@lucifer ~] cd 
[root@lucifer ~] svnadmin create repos
[root@lucifer ~] chown -R apache.apache repos
[root@lucifer ~] service httpd restart
server# openssl genrsa -des3 -rand file1:file1 -out .key 1024
server# openssl rsa -in .key -out .pem
server# openssl req -new -key .pem -out .csr
server# openssl x509 -req -days 365 -in .csr -signkey .pem -out .crt
server# cp .crt /etc/httpd/conf/.crt/
server# cp .pem /etc/httpd/conf/.key/
server# chmod go-rwx /etc/httpd/conf/.crt/.crt
server# chmod go-rwx /etc/httpd/conf/.key/.pem

nano /etc/httpd/conf.d/subversion.conf

<VirtualHost 192.168.1.2:443>
DocumentRoot "/var/www//repos/"
ServerName -server
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateFile /etc/httpd/conf/.crt/.crt
SSLCertificateKeyFile /etc/httpd/conf/.key/.pem
<Location /repos>
DAV 
SVNPath /var/www//repos
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/-auth-conf
Require valid-user
</Location>
ServerAdmin xxx@gmail.com
</VirtualHost>
server# apachectl restart

Windows XP/Vista/Win7 client – http://tortoisesvn.net/downloads

Viri:

http://wiki..org/HowTos/Subversion

http://ricardo.strangevistas.net/setup-subversion-securely-on-.html

Leave a comment

Get Adobe Flash playerPlugin by wpburn.com wordpress themes