Contents

Views 783 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

0. selinux가 활성화상태인지 확인한다. 활성화상태라면 비활성화하여야 한다.
vi /etc/selinux/config 한 후

SELINUX=disabled

라면 비활성화 상태이다.

 

1. yum install mod_ssl 하여  mod_ssl을 인스톨한다.
=> httpd가 인스톨되어있지 않았을 경우 자동 인스톨된다. 그러나 컴파일되어 인스톨되었다면 uninstall하여 yum으로 인스톨되도록 한다.
 

2. openssl 도 인스톨되어 있는지 확인하고 없으면 인스톨한다.
확인 : yum list installed | grep openssl
인스톨 : yum install openssl

 

3. 공개키, 개인키, 싸인을 생성한다.
# Generate private key 
openssl genrsa -out ca.key 1024

# Generate CSR 
openssl req -new -key ca.key -out ca.csr

# Generate Self Signed Key
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt

 

4.생성된 키파일들을 지정된 위치에 옮긴다.
# Move the files to the correct locations
mv ca.crt /etc/pki/tls/certs
mv ca.key /etc/pki/tls/private/ca.key
mv ca.csr /etc/pki/tls/private/ca.csr

 

5. vi +/SSLCertificateFile /etc/httpd/conf.d/ssl.conf 한 후에,
SSLCertificateFile 항목과 SSLCertificateKeyFile항목을 아래와 같이 설정한다.
SSLCertificateKeyFile /etc/pki/tls/private/ca.key

SSLCertificateFile /etc/pki/tls/certs/ca.crt

 

6. httpd 서비스를 새로 시작한다.
/etc/init.d/httpd restart 


?

List of Articles
No. Category Subject Author Date Views
1113 Develop [c] 파일명 또는 특정 패턴을 적용 file hooni 2016.08.03 748
1112 Develop [Android Error] The number of method references in a .dex file cannot exceed 64K hooni 2016.11.10 754
» Develop [linux] CentOS Apache 웹서버에 HTTPS 적용 hooni 2015.10.23 783
1110 System/OS [macos] How to Fix ‘You Shut Down Your Computer Because of a Problem’ file hooni 2022.06.01 785
1109 Develop [io] Apple Watch, Today Extension 앱ID 설정 hooni 2016.04.20 792
1108 Algorithm OCB5 Injection 앗싸뵹! ㅋㅋ file hooni 2014.07.01 798
1107 System/OS [linux] The Ultimate Wget Download Guide With 15 Awesome Examples hooni 2020.05.26 799
1106 Develop [c] 기막힌 정렬 코드 ㅋㄷ file hooni 2015.10.13 807
1105 Etc 사이버보안실무 수업 메모 hooni 2017.03.30 807
1104 Develop [js] e.stopPropagation() VS e.preventDefault () file hooni 2015.04.14 808
1103 Develop [android] 초간단 얼럿 (AlertDialog) hooni 2016.10.21 809
1102 Develop [kotlin] 코틀린 안드로이드 앱 버전/빌드 정보 hooni 2020.12.15 817
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 98 Next
/ 98