首先安装openssl
yum install mod_ssl openssl
如果不是用三方认证的到这里就可以了
如果有三方认证ssl上传到
cp *.crt /etc/pki/tls/certs/
cp *.key /etc/pki/tls/private/
配置Apache 服务器
# vim /etc/httpd/conf.d/ssl.conf
### overwrite the following parameters ###
SSLCertificateFile /etc/pki/tls/certs/*.crt
SSLCertificateKeyFile /etc/pki/tls/private/*.key
### The following parameter does not need to be modified in case of a self-signed certificate. ###
### If you are using a real certificate, you may receive a certificate bundle. The bundle is added using the following parameters ###
SSLCertificateChainFile /etc/pki/tls/certs/example.com.ca-bundle
然后重启httpd
# service httpd restart
如果开着防火墙记得打开443端口
OK