Apache - Export certificate and private key as pfx file

To export the certificate, the Private Key and if necessary any corresponding intermediate certificates to a pfx file the following command can be used:

[root@server cert] openssl pkcs12 -export -in filename.crt -inkey keyname.key -certfile bundlename.bundle -out backup.pfx

Change the parts in printed in bold in the command above with the filenames as they are on the server. A file, backup.pfx, will then be generated, this contains the backup.


Our SSLCheck will examine your website's root and intermediate certificates for correctness and report any potential issues

point up