Adapted from this article.
sudo yum -y install mod_ssl openssl openssl-devel sudo mkdir /usr/share/ssl sudo openssl genrsa -des3 -out server.key 1024 sudo openssl req -new -key server.key -out server.csr sudo cp server.key server.key.org sudo openssl rsa -in server.key.org -out server.key sudo openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt sudo cp server.crt /etc/httpd/conf/ sudo cp server.key /etc/httpd/conf/