1.yum install httpd -y
2.yum install mode_ssl -y
3. Download secret key (secret key in this experiment was used www0.crt www0.key example-ca.crt) to download / var / www / html
4. Modify the configuration file
vim /etc/httpd/conf.d/web.conf (it did not exist before the configuration file is created yourself)
Save and exit
5. The service will restart the httpd error, the solution is as follows:
setsebool -P httpd_read_user_content=on
6. In the Firewall service release https
firewall-cmd --permant --add-service=http
firewall-cmd --permant --add-service=https
firewall-cmd --reload
7.systemctl restart httpd
8. On the client input https: server0.example.com to visit can be. (Server0.example.com this is the hostname of the experiment, for reference only)