PFX is a password-protected archive format that packages a private key with its certificate and certificate chain. IIS cannot directly import PEM and KEY files, so they must be converted to PFX first. section 12.3.5
A practical PFX conversion workflow is:
- Install OpenSSL for Windows and locate its executable. section 12.3.5
- Open a command prompt in the folder containing the PEM and KEY files. section 12.3.5
- Run the PKCS#12 export command, enter an export password, and confirm it. section 12.3.5
- After generating the PFX file, safely delete the original PEM and KEY files from the local machine. section 12.3.5
Converting certificate files
The example creates mybglist_origin.pfx from mybglist_origin.pem and mybglist_origin.key with OpenSSL. Adjust the executable path and filenames when they differ. section 12.3.5
