'https 보안서버'에 해당되는 글 1건

  1. 2015.05.27 https 보안서버 구축 (SSL 사설 인증서 설치)


1. mod_ssl 설치

yum install mod_ssl

2. Generate perivate key 생성

openssl genrsa -des3 -out ca.key 2048
// 패스워드 입력


3. Generate CSR 생성

openssl req -new -key ca.key out ca.csr


// 정보 입력
Country Name (2 letter code) [] :
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) []:
Email Address []:

A challenge password []: 생략
An optional company name []: 생략

4. Generate Self Signed Key 생성

openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt

5. /etc/httpd/conf.d/ssl.conf 수정

SSLCertificateKeyFile "/apache/conf/ssl/ca.key"
SSLCertificateFile "/apache/conf/ssl/ca.crt"

6. httpd 재시작

/etc/init.d/httpd restart



웹 브라우저의 보안이 강화되면서 사설 인증서를 거부하는 경우도 있습니다.
테스트 용도가 아니라면, StartSSL에서 무료로 발급하는 인증서를 사용하는것을 권장합니다.


'Study > Ubuntu' 카테고리의 다른 글

Ubuntu node.js v10.x 설치  (0) 2019.06.02
Ubuntu - 디스크 정보 확인  (0) 2015.08.13
Ubuntu - nginx에 phpmyadmin 설정  (1) 2013.04.01
Ubuntu - MariaDB 설치  (0) 2013.03.24
Ubuntu - nginx 컴파일 설치  (0) 2013.03.22
Posted by theqoo
,