You can create a simple webserver(without SSL) from here.

Create a certificate:

#  cd  /etc/pki/tls/certs


Create private key:

#  make  server.key

Enter the passphrase.

Remove passphrase from private key:

#  openssl  rsa  -in  server.key  -out  server.key


#  make  server.csr

Enter the relevant information for your certificate.


Create certificate:

#  openssl  x509  -in  server.csr  -out  server.crt  -req  -signkey  server.key  -days  365

#  chmod  400  server.*


Configure SSL:


#  yum  install  mod_ssl


#  vi  /etc/httpd/conf.d/ssl.conf


Edit line no. 77 & 78:

DocumentRoot            “/var/www/html”



Edit line no. 105:

SSLCertificateFile        /etc/pki/tls/certs/server.crt


Edit line no. 112:

SSLCertificateKeyFile              /etc/pki/tls/private/server.key

(Note: Private key is also present in “certs” directory, you can specify that one also or you can copy it in “private” directory.)


#  service httpd start


Now access from browser and install the certificate.(Map server name with ip address in “/etc/hosts”)