# Create .pfx from .crt and .key file

openssl pkcs12 -export -out <filename>.pfx -inkey <key filename>.key -in <cert filename>.crt -certfile <root ca filename>.crt

Source: Stack Overflow