Steps to install Apache SSL :-
(Login as ROOT user and proceed with the steps)
1. The following rpm given below should be available.
Execute this command :
rpm -qa | grep -i openssl
Result:
openssl-0.9.7a-22.1
openssl-devel-0.9.7a-22.1
openssl096b-0.9.6b-13
2. Installing apache 2.2.0 with SSL support
i) tar -zxvf httpd-2.2.0.tar.gz
ii) cd httpd-2.2.0
iii) ./configure --prefix=/usr/local/apachessl --with-mpm=prefork --enable-ssl --disable-charset-lite --
disable-include --enable-env --enable-setenvif --disable-status --disable-autoindex --disable-asis
--enable-cgi --disable-negotiation --disable-imap --disable-actions --disable-userdir --enable-alias
–enable-rewrite=shared --with-included-apr
iv) make
v) umask 022
vi) make install
vii) chown -R root:sys /usr/local/apachessl
3. Prepare directories for Keys
mkdir /usr/local/apachessl/conf/ssl.key
mkdir /usr/local/apachessl/conf/ssl.crt
mkdir /usr/local/apachessl/conf/ssl.crl
4. Create Self signed Certificate
openssl req -new -x509 -days 30 -keyout /usr/local/apachessl/conf/ssl.key/server.key -out
/usr/local/apachessl/conf/ssl.crt/server.crt -subj '/CN=tayanasoftware.com'
Result:
Generating a 1024 bit RSA private key
....................................++++++
...........................++++++
writing new private key to '/usr/local/apachessl/conf/ssl.key/server.key'
i) It will ask for Password(New password creation)
Enter PEM pass phrase: (Enter New password)
Verifying - Enter PEM pass phrase:
5. Start the apache by the following command.
/usr/local/apachessl/bin/apachectl start
Result:
Apache/2.2.0 mod_ssl/2.2.0 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.
Server tayanasoftware.com:443 (RSA)
Enter pass phrase: ENTER PASS PHRASE
OK: Pass Phrase Dialog successful.