Linux Apache SSL Server Presentation Process Apache Apache

  • Slides: 21
Download presentation
Linux Apache SSL Server

Linux Apache SSL Server

Presentation Process Apache 설치 Apache httpd SSL 적용 테스트

Presentation Process Apache 설치 Apache httpd SSL 적용 테스트

OS : Cent. OS 6. 5 Apache Version : Apache 2. 2. 15

OS : Cent. OS 6. 5 Apache Version : Apache 2. 2. 15

Apache 설치

Apache 설치

1. Apache Install # yum install httpd

1. Apache Install # yum install httpd

1. Software Install ※ SSL 암호화를 위해 openssl 과 mod_ssl 필요 ※ Cent. OS

1. Software Install ※ SSL 암호화를 위해 openssl 과 mod_ssl 필요 ※ Cent. OS 6. 4 버전 이후로는 openssl 가 자동 설치 됨 # yum install mod_ssl openssl

2 -1. private key 생성 ※ RSA 기반의 1024 bit 키 생성 # openssl

2 -1. private key 생성 ※ RSA 기반의 1024 bit 키 생성 # openssl genrsa –out ca. key 1024

2 -3. Self Signed key 생성 # openssl x 509 -req -days 365 -in

2 -3. Self Signed key 생성 # openssl x 509 -req -days 365 -in ca. csr -signkey ca. key -out ca. crt

3. Copy file # cp ca. crt /etc/pki/tls/certs # cp ca. key /etc/pki/tls/private/ca. key

3. Copy file # cp ca. crt /etc/pki/tls/certs # cp ca. key /etc/pki/tls/private/ca. key # cp ca. csr /etc/pki/tls/private/ca. csr

5. Apache SSL 설정 변경 # vi /etc/httpd/conf. d/ssl. conf ※ SSL Certificate. File

5. Apache SSL 설정 변경 # vi /etc/httpd/conf. d/ssl. conf ※ SSL Certificate. File /etc/pki/tls/certs/ca. crt 수정 ※ SSL Certificate. Key. File /etc/pki/tls/private/ca. key 수정 # service httpd restart 실행

6. SSL Virtual. Host 추가 ※ SSL 443 포트를 사용하기 때문에 이를 위한 Virtual.

6. SSL Virtual. Host 추가 ※ SSL 443 포트를 사용하기 때문에 이를 위한 Virtual. Host 를 추가 # vi /etc/httpd/conf/httpd. conf 수정 # service httpd restart 실행

7. 방화벽 설정 ※ 443 포트를 방화벽으로 허용 # vi /etc/sysconfig/iptables 수정 # -A

7. 방화벽 설정 ※ 443 포트를 방화벽으로 허용 # vi /etc/sysconfig/iptables 수정 # -A INPUT –p tcp –m state -–state NEW –m tcp –dport 443 –j ACCEPT 추가 # service iptables restart 실행

THANK YOU

THANK YOU