Run the command below to generate a PFX file. The current certificate and the private key with which it was generated are added to the file.
If no PFX file exists, generate it using the following command, in which case the private key and current certificate are added to it (saved in the cert.cer file in base64 format):
openssl.exe pkcs12 -export -out new.pfx -inkey private.key -in cert.cer
The private key of the currently used certificate is unencrypted in base64 format in the command input in the private.key file, and the certificate’s public part (i.e. the signed public key) is in base64 format in the cert.cer file.
OpenSSL asks you to enter a password to encrypt the PFX file. The password is required in the signing program. A new new.pfx file will be generated.
If you are testing in the test bench:
Generate the PFX file using the command above, in which case the private key, the test bench’s SignNewCertificate_Private.key file and the current certificate retrieved from the test bench and saved in the cert.cer file in base64 format are added to it.