To convert PKCS#7 and private key to PKCS#12:
openssl pkcs7 –print_certs -in certificate.pb7 -out certificate.pem
openssl pkcs12 -export -in certificate.pem -inkey privateKey.key -certificate.pfx -certfile CAcert.cer
You will be asked for an encryption key for the resultant PKCS#12 file.