컴맹의 컴퓨터 이야기/개발
[팁] 인증서 종류 및 형식 변환
꿈꾸는코난
2011. 7. 18. 20:28
인증서 형식변환
PKCS#12 에서 개인키 추출
> openssl pkcs12 -in nine4u.pfx -nocerts -nodes -out nine4u.key
PKCS#12 에서 인증서 추출
> openssl pkcs12 -in nine4u.pfx -nokeys -out nine4u.crt
PEM -> PKCS#12
> openssl pkcs12 -export -in nine4u.crt -inkey nine4u.key -out nine4u.p12
DER => PEM
> openssl rsa -inform DER -outform PEM -in nine4u.der -out nine4u.pem
PEM => DER
> openssl rsa -inform PEM -outform DER -in nine4u.pem -out nine4u.der