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