Apache SSL configuration process on Windows

Source: Internet
Author: User
Tags openssl rsa openssl x509
First, download and install Apache.

The following is the download page:

Http://apache.mirrors.tds.net/httpd/binaries/win32/apache_2.2.4-win32-x86-openssl-0.9.8d.msi

Because we need to start SSL, please download the version that has been packaged with OpenSSL.

After installation, You need to configure SSL.

Open the conf/httpd. conf file

Directory: C: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf

Remove the # In front of the following two rows:

Loadmodule ssl_module modules/mod_ssl.so

Include CONF/extra/httpd-ssl.conf

Modify httpd-ssl.conf

This file is mainly because the path name of the configuration item is not enclosed by quotation marks, so there is a problem.
Search for all configurations with file paths plus "".

In this step, the remaining two files are required to generate the SSL Configuration:
Server. CRT
Server. Key

First, you need to download OpenSSL, or use OpenSSL packaged in the bin directory of Apache.

:

HTTP: /209.61.202.80/Apache/Openssl-0.9.8d-Win32.zip

Then you need to download a configuration file:

Http://www.securityfocus.com/data/tools/openssl.conf

Decompress all files in the OpenSSL package to the C: \ Program Files \ OpenSSL directory.
Put OpenSSL. conf in this directory.

Run cmd.exe
Switch to the C: \ Program Files \ OpenSSL directory
First, you must create a Certificate Signature request and a private key file:

OpenSSL req-New-out server. CSR

OpenSSL req-New-out server. CSR-config OpenSSL. conf

It will ask a series of questions. Note that CommonName must be the same as your website domain name, for example, www.yourdomain.com.
Then the RSA signature:

OpenSSL RSA-In privkey. pem-out server. Key

Finally, create a self-signed certificate:

OpenSSL X509-in server. CSR-out server. CRT-req-signkey server. Key-days 3650

After that, copy the generated server. CRT and server. Key files to the conf directory of Apache.

Now with https://www.yourdomain.com, you should be able to see it works.

See:

Http://www.openphp.cn/index.php/article/7/121/index.html

Http://hunter.campbus.com/

Http://www.nsfocus.net/index.php? Act = magazine & Do = view & Mid = 1796

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.