certificates¶
PFX nach PEM:
Convert pfx to single file which contains certificate and private key:
openssl pkcs12 -in filename.pfx -out cert.pem -nodes
Convert pfx into two separate files one with certificate and one with private key
Certificate:
openssl pkcs12 -in filename.pfx -clcerts -nokeys -out server.pem
Key:
openssl pkcs12 -in filename.pfx -nocerts -out key.pem
Remove passphrase from key-file:
openssl rsa -in key.pem -out server.key
server.pem and server.key can be configured in Apache http_ahssl.conf