http://www.modssl.org/example/
Fetch and extract the distributions of Apache, mod_ssl and OpenSSL
$ lynx http://httpd.apache.org/dist/httpd/apache_1.3.27.tar.gz
$ lynx [url]ftp://ftp.modssl.org/source/mod_ssl-2.8.12-1.3.27.tar.gz[/url]
$ lynx [url]ftp://ftp.openssl.org/source/openssl-0.9.6g.tar.gz[/url]
$ gzip -d -c apache_1.3.27.tar.gz | tar xvf -
$ gzip -d -c mod_ssl-2.8.12-1.3.27.tar.gz | tar xvf -
$ gzip -d -c openssl-0.9.6g.tar.gz | tar xvf -
Build OpenSSL
$ cd openssl-0.9.6g
$ ./config
$ make
$ cd ..
Build and install the SSL-aware Apache
$ cd mod_ssl-2.8.12-1.3.27
$ ./configure \
--with-apache=../apache_1.3.27 \
--with-ssl=../openssl-0.9.6g \
--prefix=/usr/local/apache
$ cd ..
$ cd apache_1.3.27
$ make
$ make certificate
$ make install
Cleanup after work
$ rm -rf apache_1.3.27
$ rm -rf mod_ssl-2.8.12-1.3.27
$ rm -rf openssl-0.9.6g
Fire up your SSL-aware Apache and try it out
(please replace "local-host-name" with the fully qualified domain name (FQDN) of your website which you entered at the "make certificate" step above)
check that the syntax is ok
$ /usr/local/apache/bin/apachectl configtest
$ /usr/local/apache/bin/httpd -DSSL
OR
$ /usr/local/apache/bin/apachectl startssl
$ netscape https://local-host-name/
Nilesh.