Do the following steps as:
1.vi /etc/httpd/conf.d/ssl.conf
ServerNamewww.rhce.com
DocumentRoot /var/www/rhce
DirectoryIndex index.html index.htm
ServerAdminwebmaster@rhce.com
SSLEngine on
SSLCertificateFile/etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile/etc/pki/tls/private/localhost.key
2.cd /etc/httpd/conf
3.make testcert
4.Create the directory and index page on specified path. (Index page can download fromftp://server1.example.comat exam time)
Check the SELinux context of index page , should like this:
-rw-r--r-- root root system_u:object_r:httpd_sys_content_t /var/www/html/index.html
If SELinux Context is mismatched, use the restorecon –R /var command
5.service httpd start|restart
6.chkconfig httpd on
Apache can provide encrypted communications using SSL (Secure Socket Layer). To make use of encrypted communication, a client must request to https protocol, which is uses port 443. For HTTPS protocol required the certificate file and key file.