cPanel: How to install SSL with PFX file

If you wish to install exported SSL with .pfx file to your cPanel server. You may refer to the following step.

Assume, you have a file named domain.pfx.

1. Export the key file,

openssl pkcs12 -in domain.pfx -nocerts -out domain.key

2. Export the decrypted key file,

openssl rsa -in domain.key -out domain.decrypted.key

3. Export the Certificate, crt file,

 openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.crt

4. Export the Ca Bundle file,

openssl pkcs12 -in domain.pfx -cacerts -nokeys -out cabundle.pem

5. You may now install your SSL through WHM.