- Download precompiled Apache2 binary with SSL module from http://hunter.campbus.com/ and extract them to
C:\Program Files\Apache2.
You can place it anywhere in your drive. - Find two ddl files ssleay32.dll and libeay32.dll in the installation directory and copy them to
%SYSTEMROOT%/system32. - Followed the instruction to create the test cert. I have cygwin so it was simple the only difference is that I didn't need to use -config option.
- openssl req -new -out server.csr
- openssl rsa -in privkey.pem -out server.key
- openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 3650
- Create a subdir called ssl.crt under conf and place the genereated file server.crt and server.key there.
- edit httpd.conf file (The instruction on Raible's site didn't work for me on this part):
- Uncommented this line LoadModule ssl_module modules/mod_ssl.so
- Replaced all c:/apache with the installation directory. (Note that I use forward slash)
- Removed line <IfModule mod_ssl.c>
and it's closing tag to force include ssl.conf.
- edit ssl.conf
- Removed line <IfDefine SSL>
and it's closing tag to force SSL - Replaced all c:/apache.
- Changed ServerName to your site name. Changed ServerAdmin too but should have no impact.
- Removed line <IfDefine SSL>
Wednesday, March 08, 2006
Apache2 + SSL + Win32
I have been following the instructions posted here by Raible to get Apache2SSL running on Win32. Well, there were something extra that I had to do to get it working finally.
No comments:
Post a Comment