Configuring Apache for HTTPS Class Activity - savannahc502/SavC-TechJournal-SEC260 GitHub Wiki
Goal: Use the certificate file you created to set up HTTPS on your web server.
Setting up Certificate and Key on web server
On your CentOS Web Server - make sure to copy the files into the following locations:
- Web Server certificate: /etc/pki/tls/certs
- Web server private key: /etc/pki/tls/private
Install mod-ssl for Apache
yum -y install mod_ssl
Update /etc/httpd/conf.d/ssl.conf
- Find SSLCertificateFile and make sure the path and filename match your certificate file
- Find SSLCertificateKeyFile and make sure the path and filename match your key file
- Save file
Update firewall to allow port 443 - reload firewall
sudo firewall-cmd --permanent --add-port=443/tcp
sudo systemctl reload firewalld
sudo systemctl reload httpd
Browse to your server using HTTPS - You should have success
- Must be using port 80 for this to work