Question: how to create a pfx file using openssl?
Answer: openssl. – the command for executing OpenSSL.
pkcs12. – the file utility for PKCS#12 files in OpenSSL.
-export -out certificate. pfx. – export and save the PFX file as certificate.pfx.
-inkey privateKey. key. ... 
-in certificate. crt. ... 
-certfile more. crt.