# Generate private key openssl genrsa -out ca.key 2048 # Generate CSR openssl req -new -key ca.key -out ca.csr # Generate Self Signed Key openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crtSee: https://wiki.centos.org/HowTos/Https">https://wiki.centos.org/HowTos/Https
Put the files here: /etc/httpd/conf.d/
Install mod_ssl:
ls -l /etc/httpd/modules/ yum install mod_sslAdd this confirguration to the end of the /etc/httpd/conf.d/ssl.conf file:
NameVirtualHost *:443 <VirtualHost *:443> SSLEngine on SSLProxyEngine On ServerName yourhostname.com ProxyPass / https://yourserver/ ProxyPassReverse / https://yourserver/ SSLCertificateFile /etc/httpd/conf.d/ca.crt SSLCertificateKeyFile /etc/httpd/conf.d/ca.key </VirtualHost>Reivew:
httpd -SRestart:
service httpd restartCheck for errors:
tail /var/log/httpd/ssl_error_log