The Apache server will require the following two files:
1 - Server.key : the private key associated with the certificate
2 - Server.crt : the public SSL certificate issued by certificate provider
Using Open SSL, you can extract the certificate and private key.
To extract the private key from a .pfx file, run the following OpenSSL command:
openssl pkcs12 -in domain.com.pfx -nocerts -out domain.com.key
openssl pkcs12 -in domain.com.pfx -clcerts -nokeys -out domaincom.crt
How to remove the PEM pass phrase from certificate.
The private key that you have extract will be encrypted. To unencrypt the file so that it can be used, you want to run the following command:
openssl.exe rsa -in domain_pem.com.key -out domain.com.key
The resulting domain.com.key file should be the key file that you want. Open it up using notepad to make sure there is not additional information showing up as text in the file. There may be some additional lines displaying the DN and Bag Attributes. Remove all of this from the file so that you end up with something like this:
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----