Install Apache-Httpd with SSL

  • Install Apache-Httpd with SSL support
    • Download Open-SSL version 0.9.8d or higher
    • Build Open-SSL
      • ./config
      • make
      • make install (will install at /usr/local/ssl by default, see INSTALL file for more details)
    • Test Open-SSL installation by typing "/usr/local/ssl/bin/openssl version". As a response one should receive something like "OpenSSL 0.9.8d 28 Sep 2006"
    • Download Apache-Httpd version 2.2.3 or higher
    • Build Apache-Httpd with SSL
      • ./configure --prefix=/usr/local/httpd-2.2.3 --enable-ssl=shared --with-ssl=/usr/local/ssl --enable-proxy --enable-proxy-http
      • make
      • make install (will install at /usr/local/httpd-2.2.3)
    • Create SSL-Key
      • openssl genrsa 1024 > /usr/local/httpd-2.2.3/conf/server.key
      • openssl req -new -x509 -nodes -sha1 -days 365 -key /usr/local/httpd-2.2.3/conf/server.key > /usr/local/httpd-2.2.3/conf/server.crt
    • Uncomment SSL config within /usr/local/httpd-2.2.3/conf/httpd.conf (Include conf/extra/httpd-ssl.conf)
    • Configure virtual hosts within /usr/local/httpd-2.2.3/conf/extra/httpd-vhosts.conf
    • Uncomment vhosts config within /usr/local/httpd-2.2.3/conf/httpd.conf (Include conf/extra/httpd-vhosts.conf)
    • Startup Apache: /usr/local/httpd-2.2.3/bin/apachectl start
    • Test SSL: https://127.0.0.1:443

Httpd and Tomcat with SSL:
Httpd with SSL only:



Your comments are much appreciated

Is the content of this page unclear or you think it could be improved? Please add a comment and we will try to improve it accordingly.