My previous article Article If you use Apache to set up SVN servers, this time we will introduce how to add the SSL function to enhance server security. We will not talk much about SVN configuration. For details, refer to setting up a development environment with Apache and subversion on Windows XP.
The flow account is as follows: if you have any questions, you can leave a message.
Download apache_2.0.59-openssl_0.9.8d-win32.zip from http://hunter.campbus.com /.
Run the following command in the bin directory of Apache:
OpenSSL req-config OpenSSL. CNF-New-out my-server.csr
Create a signature and a private key
Note that "common name (eg, your websites domain name)" must be the same as the servername set by Apache, for example, the IP address.
OpenSSL RSA-In privkey. pem-out my-server.key
Denying the generated. RND file will easily crack the private key.
OpenSSL X509-In my-server.csr-out my-server.cert-req-signkey my-server.key-days 365
For IE
OpenSSL X509-In my-server.cert-out my-server.crt-outform der
Place the my-server.key and my-server.crt under/CONF/SSL in the Apache directory
Remove the loadmodule ssl_module modules/mod_ssl.so annotation in httpd. conf under Apache Conf.
Configure the SSL. conf file under Conf
Locate the reassignment
Sslcertificatefile CONF/SSL/my-server.crt.
Sslcertificatekeyfile CONF/SSL/my-server.key.
Comment out
# General setup for the Virtual Host
The following
# DocumentRoot "C:/Apache/htdocs"
# Servername www.example.com: 443
# Serveradmin you@example.com
# Errorlog logs/error_log
# Transferlog logs/access_log
End the Apache monitor and Apache processes, and restart and enter https: // SERVERNAME.