2015년 2월 12일 목요일

ssl 사설인증서 생성 in 윈도.

http://slproweb.com/products/Win32OpenSSL.html 에서 openssl 설치
http://itigloo.com/security/generate-an-openssl-certificate-request-with-sha-256-signature/
http://help.globalscape.com/help/secureserver3/Generating_a_PKCS_12_private_key_public_certificate.htm
https://www.sslshopper.com/article-most-common-openssl-commands.html
set PATH=c:\OpenSSL-Win64\bin;%PATH%
set OPENSSL_CONF=c:\OpenSSL-Win64\bin\openssl.cfg
openssl genrsa -out my.key 2048
openssl req -out my.cer -key my.pem -new -x509 -sha1 -days 3650 # sha1
openssl req -out my.cer -key my.pem -new -x509 -sha256 -days 3650 # sha256
or
openssl req -x509 -sha256 -nodes -days 3650 -newkey rsa:2048 -keyout my.key -out my.cer
pfx 파일 만들기.
openssl pkcs12 -export -in my.cer -inkey my.key -out my.pfx -name "mypfx"
* 기타: key,csr -> cer -> pfx
openssl req -sha256 -nodes -days 3650 -newkey rsa:2048 -keyout my.key -out my.csr
openssl x509 -sha256 -req -days 3650 -in my.csr -signkey my.key -out my.cer
openssl pkcs12 -export -in my.cer -inkey my.key -out my.pfx -name "mypfx"

댓글 없음: