*.pfx 인증서 파일에서 Apache HTTP Server용 인증서를 추출한다.


1. 방법

$ openssl pkcs12 -in mykey.pfx -nocerts -out mykey.key
$ openssl pkcs12 -in mykey.pfx -nokeys -clcerts -out mykey.crt
$ openssl pkcs12 -in mykey.pfx -nodes -nokeys -cacerts -passin pass:mypassword -out mykey_chain.crt

2. 결과

총 3개의 파일로 분리할 수 있다.