강좌 및 설정/기타 설정

ssl 관련

웹 개발자의 비상 2012. 9. 5. 17:48

1) 난수생성 (이미생성시 넘어감)
openssl sha1 * > rand.dat

-------------------------------------------------------------------------------------------------------------------

2) 개인키 생성
openssl genrsa -rand rand.dat -des3 2048 > domain.key

3) CSR 파일생성
find / -name openssl.cnf
-> /etc/pki/tls/openssl.cnf

openssl req -config /etc/pki/tls/openssl.cnf -new -key domain.key -out domain.csr

4) 개인키 비번삭제
openssl rsa -in domain.key -out domain.out.key

-------------------------------------------------------------------------------------------------------------------

기타 key에 새로 패스워드 생성하기
openssl rsa -in rootman.out.key -des3 -out rootman.key

728x90