Apache 웹 서버는 오랫동안 사용되어왔으며, 'mod_ssl'은 웹 서버에 더 큰 보안을 제공하기 위해 사용됩니다. 'mod_ssl'은 Rocky Linux를 포함한 거의 모든 Linux 버전에 설치할 수 있습니다. 'mod_ssl'의 설치는 Rocky Linux의 Lamp-Server 생성의 일부입니다.
이 절차는 Apache 웹 서버 환경에서 Rocky Linux를 사용하여 작동하도록 설계되었습니다.
Generating a RSA private key
................+++++
..........+++++
writing new private key to '/etc/pki/tls/private/httpd.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
입력하려는 항목은 식별 이름 또는 DN입니다.
필드가 꽤 많지만 일부는 비워둘 수 있습니다
일부 필드에는 기본값이 있습니다,
'.'를 입력하면 필드가 공백 상태로 유지됩니다.
-----
Country Name (2 letter code) [XX]:AU
State or Province Name (full name) []:
Locality Name (eg, city) [Default City]:
Organization Name (eg, company) [Default Company Ltd]:LinuxConfig.org
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:rocky8
Email Address []:
이 명령이 실행을 완료하면 다음 두 개의 SSL 파일이 생성됩니다.
ls -l /etc/pki/tls/private/httpd.key /etc/pki/tls/certs/httpd.crt
-rw-r--r--. 1 root root 1269 Jan 29 16:05 /etc/pki/tls/certs/httpd.crt
-rw-------. 1 root root 1704 Jan 29 16:05 /etc/pki/tls/private/httpd.key