News公告

Centos 8 Install SSL

建立SSL

dnf install mod_ssl

vi ssl.conf
ServerName blog.mm520.net:443

<Directory "/var/www/html/public">
   AllowOverride All
   Require all granted
</Directory>

SSLCertificateFile /etc/httpd/ssl/server.pem
SSLCertificateKeyFile /etc/httpd/ssl/ecvs.pem

openssl rsa -in private.key -text > ecvs.pem
openssl x509 -in certificate.crt -out server.pem -outform PEM
openssl rsa -in private.key -text > ecvs.pem