Computer/LINUX

Openssl 설치법

알찬돌삐 2012. 8. 10. 16:20

 0. 뭐지?
 OpenSSL은 : SSL v2/v3와 TLS v1 프로토콜을 지원하는 범용 암호법 라이브러리이다.
 대부분 리눅스 배포판에 기본 설치 되어 있음.

1. 개인키생성
 1) 3DES 로 암호화(PassPhrase필요)
    openssl genrsa -des3 -out 키이름.key 1024

 2) 암호화 하지 않음
    openssl genrsa -out filename.key 1024

 3) 기존 비밀키에 패스워드 추가
    openssl rsa -in out 키이름.key -des3 -out 새로운키이름.key

 4) 기존 비밀키에 패스워드 제거
    openssl rsa -in 키이름.key -out 새로운키이름.key


2. CSR생성 (인증서 서명 요청을 위해 필요)
  openssl req -new -key 키이름.key -out CSR이름.csr


3. 자체 서명 인증서 생성하기
  openssl req -new -key 키이름.key -x509 -out 인증서이름.crt
  openssl req -new -x509 -nodes -sha1 -days 365 -key server.key -out server.crt


4. 인증서 다루는 법
  1) 인증서 확인(보기)
    openssl x509 -noout -text -in 이증서파일.crt

  2) 비밀키 보기
    openssl rsa -noout -text -in 키파일.key

 

 

http://www.ohmi.co.kr/gnu4/bbs/link.php?bo_table=linux_study&wr_id=12&no=1&page=2

이 글은 스프링노트에서 작성되었습니다.

.

'Computer > LINUX' 카테고리의 다른 글

아파치 2 최적화  (0) 2012.08.10
로그 제어하기  (0) 2012.08.10
mod_expire  (0) 2012.08.10
mod_cband (apache 2.x) 다른거  (0) 2012.08.10
mod_cband (apache 2.x)  (0) 2012.08.10