Use Apache + OpenSSL + Svn in Windows to build an SVN server with SSL

Source: Internet
Author: User
Tags openssl rsa openssl x509
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.