Enable HTTPS on Apache by uploading SSL certificate
约 63 字小于 1 分钟
Apache
2025-03-05
Enable HTTPS by uploading SSL certificate
sudo cp mathcs.cn.crt /etc/pki/tls/certs/
sudo cp mathcs.cn.key /etc/pki/tls/private/
sudo cp mathcs.cn.csr /etc/pki/tls/private/Alter the apache ssl config file:
sudo vi /etc/httpd/conf.d/ssl.confChange the line
SSLCertificateFile /etc/pki/tls/certs/mathcs.cn.crt
SSLCertificateKeyFile /etc/pki/tls/private/mathcs.cn.keywhere the filename is changed into the newly copied file.
