To convert a certificate in PEM format and a private key to PKCS #12 (pfx) format, you must
1) Or on the server run the command:
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
2) or use an online converter