암호화
개요
이 섹션에서는 암호화를 안전하게 설정하기 위한 모범 사례를 설명합니다.
Zabbix 프런트엔드용 SSL 설정
RHEL 기반 시스템에서는 mod_ssl 패키지를 설치합니다.
dnf install mod_ssl
SSL 키를 저장할 디렉터리를 생성합니다.
mkdir -p /etc/httpd/ssl/private
chmod 700 /etc/httpd/ssl/private
SSL 인증서를 생성합니다.
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/httpd/ssl/private/apache-selfsigned.key -out /etc/httpd/ssl/apache-selfsigned.crt
프롬프트에 알맞은 정보를 입력합니다.
가장 중요한 항목은 Common Name을 요청하는 항목입니다.
서버에 연결할 도메인 이름을 입력해야 합니다.
도메인 이름이 없으면 대신 공인 IP 주소를 입력할 수 있습니다.
Country Name (2 letter code) [XX]:
State or Province Name (full name) []:
Locality Name (eg, city) [Default City]:
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:example.com
Email Address []:
Apache SSL 구성 파일(/etc/httpd/conf.d/ssl.conf)을 편집합니다.
DocumentRoot "/usr/share/zabbix"
ServerName example.com:443
SSLCertificateFile /etc/httpd/ssl/apache-selfsigned.crt
SSLCertificateKeyFile /etc/httpd/ssl/private/apache-selfsigned.key
변경 사항을 적용하려면 Apache 서비스를 재시작합니다.
systemctl restart httpd.service