I ran into an issue where the certificate I got came as a .crt and the private key was .key.
You can combine these two together using openssl
openssl pkcs12 -export -out mynewcertfile-cert.pfx -inkey myprivatekeyfile.key -in mycert.crt                 Â