If you would like to use SSL for your needs, you should have a certificate. Certificates are usually purchased, but if you need just to use SSL for your own needs, you don’t need to. There is a command that allows you to create a shared certificate for your server and use it for your own needs.
/usr/bin/openssl req -x509 -newkey rsa:1024 -keyout /etc/httpd/conf/ssl.key/server.key -out /etc/httpd/conf/ssl.crt/server.crt -days 999 -nodes
This command will create the private key for your server and then will ask for some information from your part.
That’s it! Then you need to go to the domain you’d like to enable SSL for and check “Use the server’s shared signed certificate.