mod_ssl

Table of Contents

SSL対応 Apache(mod_ssl)の設定
apacheSSL自己証明は、別記事を参照

sslモジュールのインストール

# dnf install mod_ssl

apache設定

# cp /etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf.org
# vi /etc/httpd/conf.d/ssl.conf
-----------------------------------------------
SSLCertificateFile /etc/pki/tls/certs/server.crt
SSLCertificateKeyFile /etc/pki/tls/certs/server.key
-----------------------------------------------

設定ファイルのチェック

# apachectl configtest
Syntax OK

apacheの再起動

# systemctl restart httpd

ポートのオープン

# firewall-cmd --zone=external --add-service=https --permanent
# firewall-cmd --zone=internal --add-service=https --permanent
# firewall-cmd --reload
# firewall-cmd --list-all-zones

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です