The first step is to install the httpd service
yum -y install httpd
The second step is to create a directory ssl under /var/www/ and write the index.html file.
The third step is to install the yum -y install mod_ssl module to set up a secure site.
The fourth step is to create the private key file, create the request file, and create the certificate file.
cd below /etc/httpd/ssl
openssl genrsa -out s.key
openssl req -new -key s.key -out s.csr
openssl x509 -req -in s.csr -signkey s.key -out s.crt
The fifth step is to modify the configuration file /etc/httpd/conf.d/ssl.conf
/etc/httpd/conf.d/ssl.conf
DocumentRoot “/var/www/ssl” website root directory
<VirtualHost 192.168.80.150:443> Change to local IP address
SSLCertificateFile /etc/httpd/ssl/s.crt certificate file
SSLCertificateKeyFile /etc/httpd/ssl/s.key private key file
The SSLEngine on ssl engine has been started
The sixth step is to restart the httpd service.
systemctl restart httpd
You can access it in step seven.
continue
Nice