Set up SSL for httpd:

General Keys

# openssl genrsa -out ca.key 2048
# openssl req -new -key ca.key -out ca.csr
# openssl x509 -req -days 3650 -in ca.csr -signkey ca.key -out ca.crt

# cp ca.crt /etc/pki/tls/certs
# cp ca.key ca.csr /etc/pki/tls/private

# systemctl stop httpd

# yum install mod_ssl openssl
# conffile=/etc/httpd/conf.d/ssl.conf
# sed -i s/'#DocumentRoot'/DocumentRoot/g $conffile
# sed -i s/'#ServerName www.example.com'/"ServerName `hostname -i`"/ $conffile

Optionally
# sed -i s/"SSLCertificateKeyFile /etc/pki/tls/private/localhost.key"/"SSLCertificateKeyFile /etc/pki/tls/private/ca.key"/ $conffile
# sed -i s/"SSLCertificateFile /etc/pki/tls/certs/localhost.crt"/"SSLCertificateFile /etc/pki/tls/certs/ca.crt"/ $conffile

# systemctl start httpd
