You must have the password that comes with the pfx file.
Try entering the password on the command line as follows. Then you will receive both the private key and the certificate in pem format:
openssl pkcs12 -nocerts -out PushKey.pem -in moo.p12 -nodes -password pass:<mypassword>
source
share