OpenSSL Key, Csr 값 생성

OpenSSL 설치확인

[root@localhost /]# find / -name openssl
[root@localhost /]# rpm -qa openssl
[root@localhost /]# rpm -qa openssl-devel

Mod-ssl Openssl 라이브러리 설치 상태 확인

[root@localhost /]# /usr/local/apache/bin/httpd -l
Compiled-in modules :
mod_ssl.c 정적
mod_so.c

키생성
[root@localhost /]# openssl genrsa -out server.key 2048
[root@localhost /]# openssl req -x509 -sha256 -new -days 365 -key server.key -out server.crt
Country Name ( 국가코드) [] : KR
State or Province Name ( 지역 ) [] : Seoul
Locality Name ( 시/군/구 ) [] : guro
Organization Name ( 회사명 ) [] : Smileserv
Organizational Unit Name ( 부서명 ) [] : Tech Team
Common Name ( 서비스도메인명 ) [] :
Email Address [] :

Generating RSA private key, 2048 bit long modulus
………………………………..+++
…………………………………………………………………………………..+++
e is 65537 (0×10001)
Enter pass phrase for msnote.com.key:
Verifying – Enter pass phrase for msnote.com.key:

[root@localhost /]# openssl rsa -noout -text -in msnote.co.kr.key
Enter pass phrase for msnote.com.key:
Private-Key: (2048 bit)
modulus:
00:d0:10:55:b7:69:76:d4:f8:b7:7d:fb:87:98:44:
0f:3b:3d:dc:ba:32:97:d2:fb:e6:43:e9:77:17:71:
69:e9:08:7c:c9:df:81:64:82:6d:e7:ed:6b:a3:0c:
.
.
.
coefficient:
00:a0:ab:f7:77:d6:ca:60:a9:d1:ca:0a:91:33:0d:
02:4a:22:28:13:ec:a7:b0:f5:5c:e2:5c:7e:64:7c:

CSR 생성

[root@localhost /]# openssl req -new -key msnote.co.kr.key -out msnote.co.kr.csr
[root@localhost /]# vi ./msnote.co.kr.csr

Leave your Comment

Your email address will not be published. Required fields are marked *