openssl에서 올레올레 인증서 (pfx 파일)를 만든 이야기
소개
사전 준비
참고 자료
오레올레 증명서를 openssl로 작성 (상세 버전)
작업 흐름
【순서 1】openssl의 인스톨
Win32 openssl 설치 절차
Shining Light Productions (openssl 다운로드)
【순서 2】비밀키(Private Key)의 작성
# 秘密鍵(Private Key)の作成
$ openssl genrsa 2048 > server.key
【순서 3】증명서 서명 요구(CSR : Certificate Signing Request)의 작성
# 証明書署名要求(CSR : Certificate Signing Request)の作成
$ openssl req -new -key server.key > server.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:
Email Address []:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Note: 사실이라면 제대로 입력해야 하지만, 올레올레 증명서의 경우는 모두 ENTER로.
【순서 4】서버 증명서의 작성
# サーバ証明書の作成
$ openssl x509 -days 3650 -req -signkey server.key < server.csr > server.crt
Signature ok
subject=/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
Getting Private key
【순서 5】pfx 파일의 내보내기
# pfxファイルのエクスポート
$ openssl pkcs12 -export -inkey server.key -in server.cer -out server.pfx
요약
Reference
이 문제에 관하여(openssl에서 올레올레 인증서 (pfx 파일)를 만든 이야기), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/ttoori-ttoori/items/f756a1baabda6359995d텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)