Sunday, September 10, 2006

Apache HTTPD 2.0

I am trying to install Apache HTTPD 2.0 with SSL support, so that we may manage the mailinst list of "VoIP over WiMAX" project through a secure transport protocol.
  1. Server version: Apache/2.2.0
  2. apachectl startssl - this option has been obsoleted. To start httpd with SSL support, you should edit your configuration file to include the relevant directives and then use the normal apachectl start.
  3. vi /usr/local/etc/apache22/httpd.conf
  4. apachectl configtest
  5. SSLCertificateFile: file '/usr/local/etc/apache22/server.crt' does not exist or is empty
  6. vi /etc/ssl/openssl.cnf
    • countryName_default = TW
    • stateOrProvinceName_default = Nantou
    • localityName_default = Puli
    • 0.organizationName_default = National Chi Nan University
    • organizationalUnitName_default = Graduate Institute of Communication Engineerin
      g
    • commonName_default = ns3.ipv6.club.tw
  7. /usr/bin/openssl genrsa -out /usr/local/etc/apache22/server.key 1024
  8. /usr/bin/openssl req -new -days 365 -key /usr/local/etc/apache22/server.key -out /usr/local/etc/apache22/server.csr
  9. /usr/bin/openssl x509 -in /usr/local/etc/apache22/server.csr -out /usr/local/etc/apache22/server.crt -req -signkey /usr/local/etc/apache22/server.key -days 365
  10. chmod 400 server.*
Now https is working!