Configuring SSL on Apache win32 -- The missing step

I run SVN on Apache on an old server to use for synchronizing my files. I have wanted to be able to sync outside of the house, but I was afraid to not have it over SSL. I looked at configuring SSL on Apache and I just didn't have the time. I was lucky to find a few minutes the other day. But, I kept getting hung up at the end when I tried to start the service automatically. So, here is what I did...

You can get these files from http://hunter.campbus.com/

  1. copy mod_ssl.so to C:\Program Files\Apache Group\Apache2\modules
  2. copy openssl.exe to C:\Program Files\Apache Group\Apache2\bin
  3. copy ssleay32.dll and libeay32.dll to c:\windows\system32

place this file in the conf directory (can be deleted later) http://tud.at/programm/openssl.cnf

from a command prompt in the apache bin directory

  1. openssl req -config ../conf/openssl.cnf -new -out my-server.csr
  2. openssl rsa -in privkey.pem -out my-server.key
  3. openssl x509 -in my-server.csr -out my-server.cert -req -signkey my-server.key -days 1024
  4. del .rnd
  5. create ../conf/ssl
  6. copy my-server.cert and my-server.key to conf/ssl

You can get the ssl.conf file from http://raibledesigns.com/wiki/Wiki.jsp?page=ApacheSSL

  1. copy ssl.conf to conf
  2. Edit the httpd.conf and uncomment the line "LoadModule ssl_module modules/mod_ssl.so"


  3. This is the part that left me confused for the better part of an hour...
  4. Run Regedit
  5. Browse to HKLM/System/CurrentControlSet/Services/Apache/Apache2/Parameters
  6. Open ConfigArgs
  7. It should have the following information in it...
  8. -f
    C:\Program Files\Apache Group\Apache2\conf\httpd.conf
    -d
    C:\Program Files\Apache Group\Apache2\.
    -D
    SSL
    
  9. You can validate by running the apache process from the command line, but always add the -D SSL.
    • Share This Post:
    • Share on Twitter
    • Share on Facebook
    • Share on Technorati

    Print | posted on Friday, May 12, 2006 5:42 AM

Feedback

# re: Configuring SSL on Apache win32 -- The missing step

Left by Shyju at 8/26/2010 1:13 AM
Gravatar The missing step is here..

http://shyju..co.cc/2010/08/26/openssl-apache-win32/

Your comment:





 
 

Copyright © Josh Tenenbaum

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski