Install Apache 2.2.x SSL on Windows
To install Apache 2.2.x SSL is very easy. SSL package has been already attached to Appserv project. This tutorial will tell you how to create a self-signed certificate which is secure, but will cause web browsers to issue a warning, because it will not signed by a trusted Certificate Authority such as Geo Trust or Verisign. Follow the steps below:
- download and install Appserv
- copy ssleay32.dll and libeay32.dll from directory C:\AppServ\Apache2.2\bin to C:\Windows\System32
- copy openssl.cnf (or download here) to C:\AppServ\Apache2.2\bin
- open command line to create a pricate certificate by the following commands
- #cd c:\AppServ\Apache2.2\bin
- #openssl req -config openssl.cnf -new -out mycert.csr -keyout mycert.pem
- #openssl rsa -in mycert.pem -out mycert.key
- #openssl x509 -in mycert.csr -out mycert.cert -req -signkey mycert.key -days 365
- The certificate file mycert.cert and mycert.key will be created (note that, pass pharse is "pass")
- create a new folder C:\AppServ\Apache2.2\conf\ssl, and then copy mycert.cert and mycert.key from c:\AppServ\Apache2.2\bin to it
- open httpd.conf, and change "Listen 80" to "Listen 443"
- at httpd.conf, remove the "#" sign at a single line "LoadModule ssl_module ..."
- at httpd.conf, add the code below to the end of the file
- restart apache and try to access https://localhost
http://pladaojuk.wordpress.com/2010/06/24/apache2-ssl-บน-windows/#comment-26
http://www.comsci9-tsu.com/comscipress/?p=91#comment-2584
http://www.neilstuff.com/apache/apache2-ssl-windows.htm
thank you
ตอบลบThank Man
ตอบลบ