Dec
3
2009
3
2009
Subversion + SSL on Centos 5.4
yum install mod_dav_svn subversion mod_ssl [root@lucifer ~] htpasswd -cm /etc/svn-auth-conf yourusername New password: Re-type new password: Adding password for user yourusername [root@lucifer ~] htpasswd -m /etc/svn-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 svn [root@lucifer ~] cd svn [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 svn.key 1024 server# openssl rsa -in svn.key -out svn.pem server# openssl req -new -key svn.pem -out svn.csr server# openssl x509 -req -days 365 -in svn.csr -signkey svn.pem -out svn.crt server# cp svn.crt /etc/httpd/conf/ssl.crt/ server# cp svn.pem /etc/httpd/conf/ssl.key/ server# chmod go-rwx /etc/httpd/conf/ssl.crt/svn.crt server# chmod go-rwx /etc/httpd/conf/ssl.key/svn.pem nano /etc/httpd/conf.d/subversion.conf <VirtualHost 192.168.1.2:443> DocumentRoot "/var/www/svn/repos/" ServerName centos-server SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP SSLCertificateFile /etc/httpd/conf/ssl.crt/svn.crt SSLCertificateKeyFile /etc/httpd/conf/ssl.key/svn.pem <Location /repos> DAV svn SVNPath /var/www/svn/repos AuthType Basic AuthName "Subversion repos" AuthUserFile /etc/svn-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.centos.org/HowTos/Subversion
http://ricardo.strangevistas.net/setup-subversion-securely-on-centos.html
Related Posts
Leave a comment
Kategorije
- Ostalo (161)
- Računalništvo (266)
- Centos (34)
- CSS (2)
- FreeBSD (37)
- jQuery (1)
- MySQL (8)
- Na spletu dogaja … (124)
- Netbeans (4)
- PHP (20)
- Symbian (3)
- Ubuntu (32)
- Windows (5)
- Zend Framework (6)
- Zend Studio (1)
Blogroll
Arhiv
- February 2011 (5)
- December 2010 (4)
- November 2010 (2)
- October 2010 (5)
- September 2010 (6)
- August 2010 (5)
- July 2010 (10)
- June 2010 (9)
- May 2010 (10)
- April 2010 (8)
- March 2010 (12)
- February 2010 (19)
- January 2010 (20)
- December 2009 (10)
- November 2009 (1)
- October 2009 (3)
- September 2009 (2)
- August 2009 (9)
- June 2009 (11)
- May 2009 (5)
- April 2009 (6)
- March 2009 (9)
- February 2009 (15)
- January 2009 (10)
- December 2008 (17)
- November 2008 (20)
- October 2008 (16)
- September 2008 (48)
- August 2008 (56)
- July 2008 (35)
- June 2008 (35)
An article by




