[CSR] openssl 을 이용한 CSR 생성하기

Asher Kim·2021년 8월 25일
0
post-thumbnail

csr을 생성하기 위해선 우선 key파일(개인키)이 필요하다.

1. 개인키 생성

openssl genrsa -des3 -out domain.key 2048
ex - openssl genrsa -des3 -out www.example.com.key 2048
// 생성된키 확인법
openssl rsa -noout -text -in domain.key

2. CSR 생성

openssl req -new -key domain.key -out domain.csr
// 생성된 csr 확인
openssl req -noout -text -in domain.csr // csr 내용확인
cat domai.scr // base64형식 인코딩 된 내용 확인

Country Name : 국가코드 (ex: KR)
State or Province Name : 시 (ex: Seoul)
Locality Name : 구 (ex: Gwanak-Gu)
Organization Name : 회사명 (공백가능)
Organizational Unit: 부서명 (공백가능)
Common Name : 도메인 (실존하거나 사용하기 위한 도메인 입력)
Email Address : 이메일 (공백가능)

파일명으로 꼭 domain을 쓰지 않아도 된다. 단어를 사용해도 된다.

profile
공부 기록 일지 작성하기 프로젝트 🤪

0개의 댓글