

For users who already have a .p8 (PKCS#8) private key generated, you can create a .p12 (PKCS#12) bundle using OpenSSL with the following commands.
First, generate a self-signed certificate:
openssl req -new -x509 -key key.p8 -out cert.pem -days 3650Then create the .p12 bundle:
openssl pkcs12 -export -inkey key.p8 -in cert.pem -out bundle.p12This will generate a bundle.p12 file that can also be renamed to .pfx if needed.