그 외 ... (정리해야함)/꿀팁
openssl을 이용한 인증서 포맷 변경
깡냉쓰
2020. 3. 10. 20:13
728x90
반응형
PEM -> DER(바이너리)
$ openssl x509 -in 원본인증서.pem -out 저장인증서.der -outform DER (인증서)
$ openssl rsa -in 원본개인키.pem -out 저장개인키.der -pubout -outform DER (개인키)
DER/CER(바이너리) -> PEM
$ openssl x509 -in 원본인증서.cer -out 저장인증서.pem -outform pem
$ openssl x509 -in 원본인증서.der -out 저장인증서.pem -inform der -outform pem
pkcs#12 -> crt
$ openssl pkcs12 -in pkcs12.p12 -clcerts -nokeys -out 저장인증서.crt
privateKey + 인증서 -> pfx(pkcs#12)
$ openssl pkcs12 -export -in 서버인증서.cert -inkey 개인키.key -out 저장인증서.pfx -certfile 루트체인.cer
privateKey + 인증서 -> .p12(pkcx#12)
$ openssl pkcs12 -export -in cert.pem -inkey private-key.pem -out pkcs12.p12
728x90
반응형